static void appendQuoted(StringBuilder b, String value) {
            b.append('"');
            for (int i = 0; i < value.length(); ++i) {
                var c = value.charAt(i);
                if (c == '\\' || c == '"') {
                    b.append('\\');
                }
                b.append(c);
            }
            b.append('"');
        }
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