Sorting using locales

I can’t find any information in the docs how to use specific locale’s collation rules in sort commands available in Elixir. Does that mean I’m on my own here? If anyone tackled this problem before what did you try? Many thanks for any ideas.

1 Like

There is nothing like that in elixir, but you can use Enum.sort/2 and define the sorting function as necessary by your collation.

2 Likes

How strange! I see there is a i18n module in Erlang so maybe that’s something that can be done. Anyway, I think it’s a huge showstopper.

I have found the Linguist library but it does not seem to address collation :frowning: And does not seem to be actively maintained anymore.