This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Sorts search results in ascending order by the specified fields.
The ascending()
method refines the search to sort results by the specified fields in ascending order. If you specify more than one field, ascending()
sorts the results in ascending order by each field in the order they are listed.
You can sort the following types:
"abc"
comes before "XYZ"
.If a field 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 field are ranked lowest.
Fields by which to sort results in ascending order.
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.