Test case: sort