if (newOrder.intValue() - oldOrder.intValue() > 0) { for (ISection section : sectionsList) { int sectionOrder = section.getSectionOrder().intValue(); if (sectionOrder > oldOrder.intValue() && sectionOrder <= newOrder.intValue()) { section.setSectionOrder(new Integer(sectionOrder - 1));
int diffOrder = newOrder.intValue() - oldOrder.intValue();  if (diffOrder != 0) { if (diffOrder > 0) { for (ISection section : sectionsList) { int sectionOrder = section.getSectionOrder().intValue(); if (sectionOrder > oldOrder.intValue() && sectionOrder <= newOrder.intValue()) { section.setSectionOrder(new Integer(sectionOrder - 1)); }
    private Integer organizeSectionsOrder(Integer newOrder, Integer oldOrder, ISection superiorSection,            ISite site) {        List<ISection> sectionsList = getSections(superiorSection, this.getSite());               if (newOrder.intValue() - oldOrder.intValue() > 0) {            for (ISection section : sectionsList) {                int sectionOrder = section.getSectionOrder().intValue();                if (sectionOrder > oldOrder.intValue() && sectionOrder <= newOrder.intValue()) {                    section.setSectionOrder(new Integer(sectionOrder - 1));                }            }        } else {            for (ISection section : sectionsList) {                int sectionOrder = section.getSectionOrder().intValue();                if (sectionOrder >= newOrder.intValue() && sectionOrder < oldOrder.intValue()) {                    section.setSectionOrder(new Integer(sectionOrder + 1));                }            }        }        return newOrder;    }