Function locsSort

  • Sorts an array of locations (Loc) by table ID (t) and row index (r).

    Parameters

    • locs: Loc[]

      The array of locations to sort.

    • Optionalmode: "reverse"

      If "reverse", the sorted array will be reversed.

    Returns Loc[]

    A new sorted array of locations.