This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Adds a sort to a query or sort, sorting by the specified properties in ascending order.
The ascending()
method refines this query in ascending order of the specified properties. If you specify more
than one property, ascending()
sorts the results in ascending order by each property in the order they are listed.
You can sort the following types:
"abc"
comes after "XYZ"
.If a property contains a number as a String, that value is sorted alphabetically and not numerically. Items that do not have a value for the specified sort property are ranked lowest.
Fields used in the sort.