AQL order-by example

If desired, you can specify how to sort the AQL query results by using orderby.

For example:

orderby=time, user ASC, machine DESC

The sort order options are as follows:

  • ASC: sort results in ascending order
  • DESC: sort results in descending order

If you don't specify a sort order, the system uses ‘ASC’ by default.