Sometimes it’s those little requirements that can take the most time to code for, especially if it has to do with customizing the Sitecore UI. Here is one that was the exact opposite. A refreshingly easy solve for quite an important requirement.
The client asked to have the languages drop down sorted. Simple enough. After some digging around, looking at the show config to see what we if anything we had available, I noticed this little gem.
ContentEditor.SortLanguages…hmmm…could this be it?! Turns out, it was.
if you change that value to “true”, Sitecore will use the order of the languages to control the languages dropdown in the content editor.