ticket:13 tests for sorting