ElasticGraph Query API: Sorting
Use orderBy:
on a root query field to control how the results are sorted:
This query, for example, would sort by name
(ascending), with bio.yearFormed
(descending) as a tie breaker.
Use orderBy:
on a root query field to control how the results are sorted:
This query, for example, would sort by name
(ascending), with bio.yearFormed
(descending) as a tie breaker.