79423227

Date: 2025-02-08 13:11:58
Score: 0.5
Natty:
Report link

It appears that the difference between a and ä is considered primary. Using [before 1] you can achieve the expected result.

from icu import RuleBasedCollator

l=["a","ä"]
rbc = RuleBasedCollator('&[before 1]a < ä')
print(sorted(l, key=rbc.getSortKey))

To read more

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: mpivet-p