Added feature test for sorting