checking for loops, iteration 7, simple sort