Function buildCriterionExpression

Builds a sort expression that can be understood and executed by the Coveo Platform.