Make sortng the right way round