Utility function that builds a valid SortByField criterion.

  • Parameters

    • field: string

      The sortable field on which to sort.

    • order: SortOrder

      The order (ascending/descending) on which to sort.

    Returns SortByField

    A SortByField criterion.