ascending method
Sorts models by the given field in ascending order
Example:
The example returns Posts sorted by rating in ascending order.
Amplify.DataStore.query(
Post.classType,
sortBy: [Post.RATING.ascending()],
);
Implementation
QuerySortBy ascending() {
return QuerySortBy(field: fieldName, order: QuerySortOrder.ascending);
}