Skip to content

Sort string with special characters #9

Description

@floriannicolas

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!

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions