@Override
            public Geometry next() {
                if (index >= size()) {
                    throw new NoSuchElementException("Geometry list has only " + size() + " elements");
                }
                return get(index++);
            }
Sorts the elements in the list according to their Comparator.
jme3-core/src/main/java/com/jme3/renderer/queue/GeometryList.java