Rt command order by question

Hi,
Can I use “rt ls” command line to order by more than two fields?
By default, it is sorted by Ticket #. But if I sort using a different field, the Ticket# is out of order for tickets with same field value.
I tried to order by both field and Ticket# and it does not work. Please help.

rt ls -o +field,+id “query”

Or

rt ls -o +field -o +id “query”

Does the command support sort by more than one field?

Thanks,
Qiao

SC-ISAC, DSIT
(803)896-0597
qxin@cio.sc.gov

Can I use “rt ls” command line to order by more than two fields?

rt ls only supports one order by field.

You’d need to tweak this code
https://github.com/bestpractical/rt/blob/stable/share/html/REST/1.0/search/ticket#L92
as well as bin/rt to send correctly formatted syntax for the new
support.

-kevin