private String quoteAndTransform(String sorting) {
        return transform(QueryTestCase.httpEncode(sorting), null);
    }
Check sorting validation behaves OK.

@author Steinar Knutsen
container-search/src/test/java/com/yahoo/prelude/searcher/test/ValidateSortingSearcherTestCase.java