Utility function that builds a valid SortByDate criterion.

  • Parameters

    • order: SortOrder

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

    Returns SortByDate

    A SortByDate criterion.