News for hackers. Stuff that matters.
Re:Key differences between Python 2.7.x and Python 3.x (2014) by masklinn on Sunday May 07, 2017 @05:33PM (#14287808)
> It is not "just because", it is because it returns a sorted list (which is exactly what you wanted), compared to returning None.

Also because `sorted()` works on any iterable, whereas .sort only works on lists.

There are no comments on this comment yet.