Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python ordereddict reverse

reverse_dict = collections.OrderedDict(sorted(tempdict.items(), reverse=True)) # Set reverse=True
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #ordereddict #reverse
ADD COMMENT
Topic
Name
9+4 =