Added test_sorting