Closed og900aero closed 6 months ago
The problem is that ignoredia
doesn't handle this requirement:
ignoredia
is disabled then the characters will be sorted by their Unicode code point (accented characters come after regular characters).ignoredia
is enabled then accented characters will be translated to their corresponding regular characters before sorting. But then this means a
and á
are treated as equivalent and there is no way to enforce an ordering between them.I don't know if there's a way to implement this using the Go standard library, if not then it might not be feasible to implement this.
The problem is that
ignoredia
doesn't handle this requirement:
- If
ignoredia
is disabled then the characters will be sorted by their Unicode code point (accented characters come after regular characters).- If
ignoredia
is enabled then accented characters will be translated to their corresponding regular characters before sorting. But then this meansa
andá
are treated as equivalent and there is no way to enforce an ordering between them.I don't know if there's a way to implement this using the Go standard library, if not then it might not be feasible to implement this.
I disabled ignoredia, but doesnt good -> it became worse
Sort of accented characters does not yet work properly.
Here you can see that it doesn't handle accented characters properly because it actually sorts by the second letter.
The correct sequence is always the following regardless of what the second character contains
A.... Á.... ... E É ... I Í ... O Ó Ö Ő ... U Ú Ü Ű ...