magiclen / alphanumeric-sort

This crate can help you sort order for files and folders whose names contain numerals.
MIT License
20 stars 3 forks source link

FR: Support non-ASCII characters #2

Open stevenroose opened 4 years ago

stevenroose commented 4 years ago

This crate doesn't seem to work with non-ASCII characters. Sorting French or Spanish words, let alone Chinese or Japanese words don't seem to be working correctly.

magiclen commented 4 years ago

Could you provide some examples?

stevenroose commented 4 years ago

It seemed that sorting complex unicode based languages is quite impossible. So nevermind. Even though I think sorting latin characters with accents next to their corresponding letter without accent would be nice.

kirawi commented 3 months ago

For anyone else looking into this, you would be looking into an implementation of the Unicode Collation algorithm