test cases done for sort.