Sort and cleanup of dictionary files.