Add a test on sorting