Sorting lists in RT?

We’re new to RT here , and in working with the 3.0.5 web interface we’ve been
surprised at how many unsorted lists there are, especially in the admin
interface. Things like rights-lists for users, or the users themselves,
etc., some of which can get large enough that hunting for a specific item
would be “fun”. Is this by design or just the current state of affairs? If
we were to go about changing these lists to be display sorted, would the
patches be welcome?

On a related point, what’s the preferred technique for sorting? In some
cases, the Perl code sorts an array of retrieved database items, in other
cases the items are retrieved using an OrderBy() call. Is there One True
Way, or is RT sorting-agnostic?

Thanks for the good work so far!
Ross A. Patterson
Chief Technology Officer
CatchFIRE Systems, Inc.
5885 Trinity Parkway, Suite 220
Centreville, VA 20120
(703) 563-4164

Generally my experience has been that patches are welcome.

As for sorting, I suggest doing whatever makes the most sense.

Matt

Ross Patterson wrote:

We’re new to RT here , and in working with the 3.0.5 web interface we’ve been
surprised at how many unsorted lists there are, especially in the admin
interface. Things like rights-lists for users, or the users themselves,
etc., some of which can get large enough that hunting for a specific item
would be “fun”. Is this by design or just the current state of affairs? If
we were to go about changing these lists to be display sorted, would the
patches be welcome?

I’d suspect that it’s just the current state of affairs, and patches
would be welcome. :slight_smile:

On a related point, what’s the preferred technique for sorting? In some
cases, the Perl code sorts an array of retrieved database items, in other
cases the items are retrieved using an OrderBy() call. Is there One True
Way, or is RT sorting-agnostic?

Anything that ISA RT::SearchBuilder should probably be ordered
using its OrderBy() method.
Phil Homewood, Systems Janitor, http://www.SnapGear.com
pdh@snapgear.com Ph: +61 7 3435 2810 Fx: +61 7 3891 3630
SnapGear - Custom Embedded Solutions and Security Appliances

“RP” == Ross Patterson Ross.Patterson@CatchFS.Com writes:

RP> We’re new to RT here , and in working with the 3.0.5 web interface we’ve been
RP> surprised at how many unsorted lists there are, especially in the admin
RP> interface. Things like rights-lists for users, or the users themselves,

Some things are sorted by ID number, I believe.

Also, what version of DBIx::SearchBuilder do you have installed? I
find that 0.90 doesn’t sort properly with Postgres all the time.