Skip to content
Advertisement

natsort and strnatcasecmp work different with cyrillic

strnatcasecmp works very strange with cyrillic. See code:

JavaScript

Advertisement

Answer

Eventually, I resolved the problem like this:

JavaScript

Pretty ugly, but it did the trick. Look forward for better solution.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement