Add test case for aggregate.sort