add test case of sort