Python Sort List

A common idiom in programming is sorting a list. Python makes this a very simple task.

Python provides a built-in sorted() function that accepts an iterable type, and return a sorted list:
(more…)