Join us Dec. 16 for The Community Hour, our first global virtual User Group event!

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

You could do like this

 gr.orderBy('fieldname');

gr.orderByDesc('fieldname');

What exactly you wanna do?

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

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 🙂