* @param index1 the index of the first element in the interval
* @param index2 the index of the last element in the interval
*/
public void sortByCounter(int index1, int index2)
{
Sort.sort(list, index1, index2, new ComparatorInterface()
{
public int compare(Object obj1, Object obj2)
{
RGBColor col1 = (RGBColor)obj1;
RGBColor col2 = (RGBColor)obj2;