Multiple sort for lists

JayaBharathi
Kilo Contributor

Is it possible to sort a list based on more than one field?
i.e If in 'Tasks' module, if I click on 'Number' to sort it by the Number, then if I click on 'Priority' it should sort by 'task number' and then by "Priority".
Thanks in advance,
Jaya Bharathi

6 REPLIES 6

w_bouwer
Mega Expert

Hi Jaya,

Yes it is possible to add sorting queries to your lists. I've attached a picture showing you the button from the list. You have to open your filter to make these changes though.

Regards,

Wesley


JayaBharathi
Kilo Contributor

Hi Wesley,

Thanks for the reply. I don't want to fix the sort order using filters. Instead user should be to sort multiple columns when he clicks on the column header.

Thanks in advance
Jaya Bharathi


w_bouwer
Mega Expert

Hi Jaya,

I'm afraid it is not possible to do such a thing then. Clicking on one of the column headers would just negate the previously set order field, and replace it with the one clicked. You would have to customize something for that.

Regards,

Wesley


Hi Wesley,

Thank you for the response. Can you tell me internally which function does g_list.sort('field_name') function calls. I found this function in sort(a to z) of UI Context Menu. I was trying to understand so that i can customize it.

Thanks and Regards,
Jaya Bharathi