Making sure the results of  are in the right order