Move comparators to end of document