Sort and remove unnecessary metadata from locale files.