You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying out this code, and I have some text in lowercase, and also with some French accents. The lower case characters were sorted after all the uppercase, and the text with accents appeared even farther below that.
Is this a problem with my set up, or is the default text sorter just doing an ascii sort? or would there be a way to correct this, maybe via a custom sorter?
The text was updated successfully, but these errors were encountered:
I got around this by add in .toLowerCase(); and then running a regex replacement to strip out possible diacritics on vowels and letters in the fallback text conversion function. It's not very elegent, but I don't know much javascript, and it seems to do the trick.
Hey jlin! Do you have a patch anywhere? I agree actually running a comparison on the accented characters would be ideal, and I would have expected it to be built into the normal Javascript comparison.
Let me know if you have a patch, but otherwise I'm going to leave this open until I build a fix.
Hello!
I was trying out this code, and I have some text in lowercase, and also with some French accents. The lower case characters were sorted after all the uppercase, and the text with accents appeared even farther below that.
Is this a problem with my set up, or is the default text sorter just doing an ascii sort? or would there be a way to correct this, maybe via a custom sorter?
The text was updated successfully, but these errors were encountered: