Allow sorting the entries in the replace dictionary
Minor refactoring of ReplDictEditor