now it will sort recursively, and the sorting test case is better....