Skip to content

default compare function bug #2

@mixmix

Description

@mixmix
function cmp (a, b) {
  return a < b ? -1 : a > b ? 1 : 0
}

merge seems to choke if the return value is 0

solution change the default to fall back to e.g. 1 (or oscillate between 1/ -1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions