I am looking to sort a list of RGB colors by their least distance, and hopefully this will give a better sorting than Luminosity and HSV. I am using the distance formula to calculate the color's distance, but How can I sort the list based on the least distance?