thebearbear/Python-Idioms — pull request #7 by odeits (2013-12-01 05:22:04+00:00)
Title: is_sorted

Runs in O(n) time. In general, you don't need to check if an iterable is sorted. If you need it to be sorted, just sort it.