We're back after a server migration that caused effbot.org to fall over a bit harder than expected. Expect some glitches.

sorted

sorted(iterable[, cmp[, key[, reverse]]])

Returns a new sorted list from the items in iterable. The optional arguments cmp, key, and reverse have the same meaning as those for the list.sort method. (New in version 2.4.)