strnatcoll PHP function to compare strings in natural order and case-insensitive using current locale It comes useful for languages like spanish or german when you have to sort strings containing words with accents and/or numbers.