Doctests: don't wrap sorted(...) in list()

It's redundant.