static boolean needQuotes(String value) {
            if (value.isEmpty()) return true;
            for (int i = 0; i < value.length(); ++i) {
                var c = value.charAt(i);
                if (c == ' ' || c == ',' || c == '(' || c == ')' || c == '\\' || c == '"') {
                    return true;
                }
            }
            return false;
        }
Returns the serial form of this which contains all information needed to reconstruct this sorter
container-search/src/main/java/com/yahoo/search/query/Sorting.java