Use SortedDict instead of OrderedDict for Python 2.6.