<human>:  sorting values of python dict using sorted builtin function
<bot>: Here is some code to reverse sort items in dictionary `mydict` by value

sorted(iter(mydict.items()), key=itemgetter(1), reverse=True)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.