Sort (hex) colors by Hue : <p>I have a list of colors represented in hex. And I would like to sort them by Hue.Small example:</p>

<pre><code>My_hash = {"1"=&gt;["#00050c"], 
 "2"=&gt;["#ffffff"], 
 "3"=&gt;["#d6e7ff"],
 "4"=&gt;["#008000"],
 "5"=&gt;["#0768ef"],
 "6"=&gt;["#07408e"],
 "7"=&gt;["#42AAFF"],
 "8"=&gt;["#21406b"],
 "9"=&gt;["#032656"]}
My_hash.each_value {|value| puts value}
</code></pre>
