Added sort to getAvailableLocales to make this call deterministic -- since it's using a directory iterator, order can change based on glob call