@dxos/echo
    Preparing search index...

    Variable compareAnnotationOrderValuesConst

    compareAnnotationOrderValues: (
        a: string | number | null,
        b: string | number | null,
        direction: QueryAST.OrderDirection,
    ) => number

    Compares two getAnnotationOrderValue results as the SQL executor's ORDER BY does: nulls last in either direction, numbers before strings, strings by code unit.

    Type declaration

      • (
            a: string | number | null,
            b: string | number | null,
            direction: QueryAST.OrderDirection,
        ): number
      • Parameters

        Returns number