Adding Ryan's iteration 2 except sort