Corrects ordering