Reverse order of comparators inside factory