@ Override public void manipulateChildElements ( List < HierarchyWrapper > children ) { for ( int i = 0 ; i < children . size ( ) ; i ++ ) { HierarchyWrapper wrapperImpl = children . get ( i ) ; final Wrapper < Element > wrapper = wrapperImpl . getElementContent ( ) ; if ( wrapper != null && wrapper . isSortable ( ) ) { insertChildInSortedOrder ( children , i , wrapperImpl , wrapper ) ; } } }
Sort all children of an element