Don't do list(sorted(...))

The list() call is redundant.