Open propensive opened 2 years ago
Currently, sorting is done using the default Ordering[String] instance. But it should be locale-dependent, and the locale should be made explicit.
Ordering[String]
For example, for French, we currently need to write something like:
val collator = Collator.getInstance(Locale.FRANCE) given Ordering[String] = collator.compare(_, _)
Locales should be taken from Cosmopolite.
Currently, sorting is done using the default
Ordering[String]
instance. But it should be locale-dependent, and the locale should be made explicit.For example, for French, we currently need to write something like: