sortable coding challenge

http://sortable.com/blog/coding-challenge/

Solution tested using Python 3.3.2. Runtime is about 45 seconds on an
AMD Athlon II X4 series chip.