title: Javascript - Sort rgb values
body: <p>Using javascript/jquery, I want to sort an array of rgba values to the colours of the visible spectrum. By doing this, like shades should be bunched together. Is there a plugin to do this or how would I go about doing it?</p>
  
  <p>Spectrum image: <a href="http://www.gamonline.com/catalog/colortheory/images/spectrum.gif" rel="noreferrer">http://www.gamonline.com/catalog/colortheory/images/spectrum.gif</a></p>