public void sortConfectionBySugar() {
           Collections.sort(confections, new Comparator() {
             public int compare(Object ob1, Object ob2) {
             	Confections co1 = (Confections) ob1;
             	Confections co2 = (Confections) ob2;
                 if (co1.getSugar() > co2.getSugar()) {
                     return 1;
                 }
                 if (co2.getSugar() > co1.getSugar()) {
                     return -1;
                 }
                 return 0;
             }
         });
     }