[rt-users] sorting by custom fields

Dimitry Faynerman dimitry.faynerman at hypermediasystems.com
Fri Apr 2 13:56:48 EST 2004


Could anybody, please, explain me, which special things I have to do do be
able to sort by custom fields. I have this piece of code:

my $rows = 150;

my $MyTickets = RT::Tickets->new($session{'CurrentUser'});
$MyTickets->LimitWatcher(TYPE => 'Requestor', VALUE =>
$MyTickets->OrderBy(FIELD => $TicketsSortBy, ORDER => $TicketsSortOrder);

Sort by any other fields works just fine. But when I try to sort by a custom
field all the tickets disappear and nothing shows up.



More information about the rt-users mailing list