Order Query Results
A how-to guide to help you order query results using WOQL
To use this How-To, first clone the Star Wars demo into your team on TerminusCMS. You will then have full access to the data needed for this tutorial
Ordering results using order_by
order_by
The order_by
keyword will allow you to sort results.
This returns the first two results of people, who have a given eye color, sorted by eye color, in reverse order.
To get the alternative order, you can write:
Or simply:
Last updated