orderByAscending method
- String key
inherited
Sort the results in ascending order with the given key.
Sort the returned entries in ascending order of the provided key.
key
The key to order by.
you can chain this call by using double dot
Example:
var stack = contentstack.Stack( "apiKey", "deliveryToken", "environment");
var query = stack.contentType("contentTypeUid").entry().query();
query.orderByAscending('ascendingByKey');
Implementation
void orderByAscending(String key) {
queryParameter['asc'] = key.toString();
}