An Ordering is a method that takes one or more Ordering objects to sort
a Array. An Ordering object is created by using the
desc() function with a field accessor:
asc(): sort by the field in ascending order
desc(): sort by the field in descending order
The first entry in the Ordering has the highest sorting priority, with priority decreasing with each following entry.
order() is the last value in a query, the first page of the new
Array is returned.
The source array isn’t changed.
Ordering to apply to Array values. One or more Ordering objects.
Is this article helpful?
Tell Fauna how the article can be improved:
Thank you for your feedback!