assert and comparator order