selection sort is reordered