Skip to content

uniqueItems should use SORT_REGULAR flag #12

@bazo

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

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