sort test cases