String token() {
            if (pos >= spec.length()) {
                return new String();
            }
            var oldPos = pos;
            while (pos < spec.length()) {
                var c = spec.charAt(pos);
                if (c == ' ' || c == ',' || c == '(' || c == ')' || c == '\\' || c == '"') {
                    break;
                }
                ++pos;
            }
            return spec.substring(oldPos, pos);
        }
Decide if sortorder is ascending or not.
container-search/src/main/java/com/yahoo/search/query/Sorting.java