I would recommend implementing a compareTo() method that determines which color comes before which.

Something like:

/**
* Blue comes before green.
*
* Returns less than 0 if item1 comes...