Skip to content

byString depends on locale #19

@johnw42

Description

@johnw42

IMHO byString should use JavaScript's relational operators rather than a locale-sensitive comparison to avoid surprises where different users see different sort orders. Using a locale-sensitive comparison should be something users can opt into via the options parameter.

I propose adding a "locale" option, where true means to use the current locale, a falsy value means to use the < operator, and a nonempty string means to use a specific locale. As this would be a potentially breaking change for some users, the project's major version number should be increased.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions