Sort Syntax in Hub
This document provides a BNF description for Hub sort grammar.
<SORT> ::= <OrderBy>+ EOF; <OrderBy> ::= <Field> ( ":" ( "asc" | "desc" ) )?
Grammar is case-insensitive.
<Field>— the name of a field to sort by. For example,
name, and so on.
Supported Fields and Sort Order
The list of supported fields for sorting depends on the requested resource. In its turn, each field has its own default sorting order. You can receive the default sorting order in the response to a "get all" request to the required resource.
name Sort by the field "name" in a default order.
Sort by field name in the ascending order.
Sort by "group" first, then entries with the same group sort by name in the descending order.
Last modified: 8 April 2021