I think this will also be an issue under Python 2.6. 

Btw, even tho the `SortedDict` was introduced in Python 2.7, Django comes with a `SortedDict`. I think by using the `SortedDict`, we can save the trouble of sorting again, since `order_by` has already done the job.