remove useless orderings