Parser for the PostgREST order= parameter:
a.desc.nullslast,data->>x,clients(name).asc.
A term is a field (with optional JSON path) or relation(field) for ordering by a
column of a to-one embed, then optionally .asc/.desc and
.nullsfirst/.nullslast.
Summary
Functions
Parses an order= value into order terms.
Functions
@spec parse(String.t()) :: {:ok, [PgRest.AST.OrderTerm.t()]} | {:error, PgRest.Error.t()}
Parses an order= value into order terms.