Hub 2017.4 Help

Sort Syntax

This document provides a BNF description for Hub sort grammar.

Grammar

Grammar

<SORT> ::= <OrderBy>+ EOF; <OrderBy> ::= <Field> ( ":" ( "asc" | "desc" ) )?

Grammar is case-insensitive.

  • <Field> — field name (id, name, etc.).

Samples

Samples

QueryDescription
nameSort by field name in a default order.
name:asc Sort by field name in the ascending order.
group, name:desc Sort by "group" first, then entries with the same group sort by name in the descending order.
Last modified: 21 February 2018