code: function toIndexableString(key) {
    var zero = '\u0000';
    key = normalizeKey(key);
    return collationIndex(key) + SEP + indexify(key) + zero;
  }
docs: convert the given key to a string that would be appropriate for lexical sorting, e.g. within a database, where the sorting is the same given by the collate() function.