equals

open operator override fun equals(other: Any?): Boolean(source)

the shouldBeSorted flag has no bearing on equals!