@Override
        public int compare(Vertex o1, Vertex o2) {
            if (Float.compare(o1.collapseCost, o2.collapseCost) == 0) {
                return 0;
            }
            if (o1.collapseCost < o2.collapseCost) {
                return -1;
            }
            return 1;
        }
Comparator used to sort vertices according to their collapse cost
jme3-core/src/tools/java/jme3tools/optimize/LodGenerator.java