I have a python dictionary consisting of (names,value) pairs like so
pyDictionary = {"Bob":12,"Mellissa":12,"roger":13}
What i would like to do is to obtain a sorted version of the above dictionary where the sorting is done by giving first prority to the value and if the value for two pairs are the same then the comparision should be made by lexographically comparing the names.
How can i acheive this in python3.7?