Closed vdumont closed 8 years ago
Just a small preventive fix. heightAscThanNameComparator isn't transitive as implemented, it shouldn't happen but if a and b were the same object then this would likely result in undefined behavior because a > b is true but b > a is also true.
heightAscThanNameComparator
👍 Thanks @vdumont !
Just a small preventive fix.
heightAscThanNameComparator
isn't transitive as implemented, it shouldn't happen but if a and b were the same object then this would likely result in undefined behavior because a > b is true but b > a is also true.