You're seeing just the function sort, go back to Ash.Query module for more information.


sort(t() | Ash.Resource.t(), Ash.Sort.t()) :: t()

Sort the results based on attributes or aggregates (calculations are not yet supported)

Takes a list of fields to sort on, or a keyword list/mixed keyword list of fields and sort directions. The default sort direction is :asc.


Ash.Query.sort(query, [:foo, :bar])

Ash.Query.sort(query, [:foo, bar: :desc])

Ash.Query.sort(query, [foo: :desc, bar: :asc])