It seems like a good idea to use `sorted()` here too (in place of `list`).