Sorting rgb colors