Replies: 1 comment 2 replies
-
Good pov, but I wonder how about sorting descendant using Intl collector, is there any way to do it natively? or does it have to be sorted using the method you provided and then reverse the array? Maybe this is a stupid question but I've never worked with Intl collator before, so yeah.... |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The default sort of Javascript will not work properly with files e.g. as chapters of a book.
Current sort behavior:
Expected behavior:
The natural sort can be achieved by using localeCompare, as in this article.
Beta Was this translation helpful? Give feedback.
All reactions