Function buildFieldSortCriterion

Utility function that builds a valid SortByField criterion.