Sort By - Hue

The hue is always used to distinguish the color. Set the right text box to the tolerance of the hue.
When the difference between the hue of the measured color and that of the trained color is less than the tolerance of the hue, the measured color is judged to match the trained color.