Implement Sequence::sorted()