Skip to content
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

Sort string with special characters #9

Open
floriannicolas opened this issue Nov 29, 2016 · 0 comments
Open

Sort string with special characters #9

floriannicolas opened this issue Nov 29, 2016 · 0 comments

Comments

@floriannicolas
Copy link

Hi !
Great job for DataCollection.js, I use it since yesterday and it is really usefull!

It's not really a bug, just a weird (but understanding) feature. When I sorted my collection by a string property, I noted a weird order. Lowercase strings or strings who contain special characters are at the end of list.

Example for this unordered list :

  • Oberyn Martell
  • osha
  • Stannis Baratheon
  • Ëlia Marthell

If I sort this list by ASC :

  • Oberyn Martell
  • Stannis Baratheon
  • osha
  • Ëlia Marthell

If I sort this list by DESC :

  • Ëlia Marthell
  • osha
  • Stannis Baratheon
  • Oberyn Martell

I found a solution: duplicate my string property with a proper_property (all in lower case, without special character) but if DataCollection.js could provide it own solution, it would be great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant