Test case 1 fails in sort problem

test case 1 fails, why???