Since the locales is a map, and maps in Go do not have order, sometime the language switcher was shown in a different order. I sort by language code, which is as arbitrary as sorting by name, but makes sense to me.