Skip to content

Doesn't properly sort case insensitive strings #2

@datio

Description

@datio

By adding after:

            aVal = valueOf(a, keyPaths[i].path);
            bVal = valueOf(b, keyPaths[i].path);

this:

            if (typeof valueOf(a, keyPaths[i].path) == 'string' && typeof valueOf(b, keyPaths[i].path) == 'string'){
                aVal = aVal.toLowerCase();
                bVal = bVal.toLowerCase();
            }

fixes the issue :)

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