OrderedDict replaced with SortedDict from Django