Test to see if Austrian German sorts differently to German and Swiss German
ß sorts as "ss" in German/Swiss German, and as "sz" in Austrian German
by David Storey
JavaScript
var str = ["straße", "strasse", "strasze", "strast"],
locales = ["de-DE", "de-CH", "de-AT"],
length = locales.length,
sorter = null;
console.clear();
for (var i = 0; i < length; i++) {
sorter = new Intl.Collator(locales[i], { usage: "sort", sensitivity: "variant"});
console.log(sorter.resolvedOptions().locale + ":\t" + str.sort(sorter.compare));
}