Skip to content

uniqueItems should use SORT_REGULAR flag #12

Description

@bazo

currently it uses default SORT_STRING flag, which coerces each array element into a string. this fails if the array elements are objects

SORT_REGULAR then compares by object properties and it works ok

check here for more explanation http://stackoverflow.com/questions/2426557/array-unique-for-objects

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions