Adds a sort to an aggregation, sorting by the items or groups by the specified properties in ascending order.
The ascending()
function refines a WixDataAggregate
to sort the resulting
items or groups in ascending order. 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 will be sorted alphabetically and not numerically. Items that do not have a value for the specified sort property are ranked lowest.
Note: Aggregations can only be used on collections you have created. They cannot be used on Wix App Collections.
The properties used in the sort.