How to sort in the specified order by addQuery()

ghc
Tera Contributor

The retrieved data is sorted in the order of the field status 05 02 01

thanks!

7 REPLIES 7

Harish KM
Kilo Patron
Kilo Patron

You could do like this

 gr.orderBy('fieldname');

gr.orderByDesc('fieldname');

What exactly you wanna do?

Regards
Harish

ghc
Tera Contributor

 I want the data to be arranged in the specified order such as status 05 02 01 instead of ascending or descending

Is it a choice field? If yes can use sequence field to set the order

Regards
Harish

Aman Kumar S
Kilo Patron

Hey,

No you can't do it

 

Feel free to mark correct, If I answered your query.

Will be helpful for future visitors looking for similar questions 🙂

Best Regards
Aman Kumar