Fix some broken tags, fix empty values, correct sorting
Fix some typos and use the names from CLDR exactly
Stable sort of locales, countries, keyboards, timezones, languages

When writing the xml, use a stable sort for items which have the same
rank, use the item names to sort if the rank is the same.
use the term “territory” instead of “country”, it is more appropriate

419 isn’t really a country, for some others the term “territory”
also seems to fit better.y
Fix some  typos in territories.xml and use the names from CLDR exactly
Add missing translations from CLDR
Add code to add missing translations from CLDR and compare existing translations