I have two dictionaries which order represented by their values.
d1= {570.44: 2, 305.21: 1, 271.94: 0, 463.20: 3, 556.60: 4, 596.27: 5}
d2= {570.44: 537.5, 596.27: 767.0, 556.60: 644.5, 271.94: 285.0, 305.21: 334.5, 463.20: 428.5}
I would like to compare the order, which is defined by the value.
For example, 570.44
won't be the same according to the values, in d1 it would be in the third position, while in d2 it will be in the fourth.
d1[570.44] < d2[570.44]
As you can see, when I mean order I mean the order determined by the value of the keys, not by order of insertion etc.
How can I compare these two dictionaries? (usually the comparisons are for equality like in this question but I am interested in order