eza-community / eza

A modern alternative to ls
https://eza.rocks
European Union Public License 1.2
11.35k stars 204 forks source link

bug: Sort function not work very well with hungarian letters #1006

Open og900aero opened 4 months ago

og900aero commented 4 months ago

$ eza --version v0.18.14 [+git]

command that I using: eza -lahg --color=always --group-directories-first

Debian 12 stable.

Sort of accented characters does not yet work properly.

screenshot_1716806555

The correct sequence is always the following regardless of what the second character contains

A.... Á.... ... E É ... I Í ... O Ó Ö Ő ... U Ú Ü Ű ...


daviessm commented 4 months ago

It looks like we're using the natord crate to do the sorting, which doesn't handle most of Unicode properly. However, it's not an easy problem to solve: https://sts10.github.io/2023/01/29/sorting-words-alphabetically-rust.html

This might be a good first issue for someone new to the project to work on.

og900aero commented 4 months ago

It looks like we're using the natord crate to do the sorting, which doesn't handle most of Unicode properly. However, it's not an easy problem to solve: https://sts10.github.io/2023/01/29/sorting-words-alphabetically-rust.html

This might be a good first issue for someone new to the project to work on.

sxyazi success under rust in his file manager: https://github.com/sxyazi/yazi Maybe he can help.