Utility function that builds a valid SortByDate criterion.
SortByDate
The order (ascending/descending) on which to sort.
A SortByDate criterion.
Utility function that builds a valid
SortByDate
criterion.