New implementation of Range sorting that works for Python 2.5 to 3.3, at least.