Skip to content

Cldr Collation version 1.1.0

Latest

Choose a tag to compare

@kipcole9 kipcole9 released this 11 May 05:27

Bug Fixes

  • Cldr.Collation.Insensitive.compare/2 now accepts any term, falling back to Erlang term order when either argument is non-binary so it can be used safely as a comparator with Enum.sort_by/3 and multi-key sort functions. Cldr.Collation.compare/3 and sort_key/2 now raise a clear ArgumentError (instead of crashing in internal lookup) when given non-binary input. Thanks to @tjchambers for the report. Closes #20.