first iteration of sorting testcase