dictionary_order
struct bwstring *dictionary_order(struct bwstring *str);
key = dictionary_order(key);
ret = dictionary_order(ret);