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