orderByDescending method
- String key
inherited
Sort the results in descending order with the given key.
Sort the returned entries in descending 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.orderByDecending('descendingByKey');
Implementation
void orderByDescending(String key) {
queryParameter['desc'] = key.toString();
}