-
Notifications
You must be signed in to change notification settings - Fork 305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect Array sortBy order #382
Comments
Tests appear passing to me... maybe this is a locale issue? |
Interesting........ can you clear your cache and try again?? |
Hmm, well, now the demo seems to be working properly, so I'll go ahead and close this issue. Thanks! |
Looks like I need to put a cache killer in the iframe URL probably... I'll make a note to do that in the future! |
I just cleared my browser cache (Chrome) and reran those tests and I'm still seeing the array error, but not the date one. |
ok kind of a pain, but can you clone the repo and run |
Very interesting... what's the version of FF? |
The latest v25.0 |
ok I'll have a look later on a vbox... thanks again! |
Hmm, ok I was wrong. The sort is still incorrect. I updated the demo to only show one comparison... the result should match the sort string. We start with this sorted string:
and should end with the same result, but instead get this:
|
Hi, I'm really sorry to take so long to respond here! Please have a look here: http://sugarjs.com/arrays#sorting at the second to last paragraph. Basically you'll have to do a few modifications to achieve correct sort order for Scandinavian languages. You have to turn off the default sort equivalents. For Scandinavian languages only a subset need to be disabled but this is the easiest way:
Doing this will allow One more thing though is that the string you passed in for |
Awesome! Thanks! |
After looking into it, two were badly formed tests that have since been fixed, and one was a change caused by a Chrome update. This has also been accounted for in the current edge version. Thanks! |
Awesome work! |
Once again, thank you for an awesome library!
First off, the sort tests appear to be failing, but I can't tell if it is a problem with the sortBy function.
So, even with the default sort order & ignore case set to
false
:If I sort an identical sort order string, I get this result:
And here is a demo I was using for testing.
The text was updated successfully, but these errors were encountered: