@metreeca/qest - v0.10.0
    Preparing search index...

    Function getOrderPrecedence

    • Resolves an Order to its sort precedence.

      The 1-based magnitude ranking a sort key against other criteria: the "asc" and "desc" shorthands map to 1, and a numeric order to the absolute value of its precedence (0 when the order is zero and thus ignored).

      Parameters

      • order: Order

        The sort order to resolve

      Returns number

      The non-negative precedence of order, or 0 when it is zero and ignored

      getOrderDirection for the signed direction