Node comparator: wrong behaviour with equal scores