I have the following object...
{0: "#000000", 1: "#FFFFFF", 0.292: "#ff0000", 0.7: "#3498db"}
How can reverse the order of the hex values respective to their keys? This is what I want to achieve...
{0: "#FFFFFF", 0.292: "#3498db", 0.7: "#ff0000", 1: "#000000"}