ColorSort sorts an array of colors perceptually.