You can sort records Ascending and Descending. To activate sorting, you need to call
.sortDesc() on a
Query object and pass as string the name of the field you want to sort by.
In order to obtain deeper insights, please visit the API reference