As easy as it is to translate content within WordPress, there are times in which some of the content in the database may be different than the original locale of the site.
Say, for example, you’re running a site that includes a list of names in a flavor German when your server (or even perhaps your site) is based on an English locale. The goal is to read the names into a collection – rather, an array – and then sort them alphabetically.
Obviously, different locales have different alphabets so what works in, say, the United States won’t necessarily work in Germany.
There are a couple of ways to go about handling this, but the easiest way that I’ve found is to use PHP’s Collator class.

