diff -r c73bb30448db -r f2aab2a9b6cb branchobj.cpp --- a/branchobj.cpp Tue Oct 16 11:42:21 2007 +0000 +++ b/branchobj.cpp Mon Oct 22 09:50:03 2007 +0000 @@ -1238,6 +1238,27 @@ return NULL; } +void BranchObj::sortChildren() +{ + int childCount=branch.count(); + int curChildIndex; + bool madeChanges=false; + do + { + madeChanges=false; + for(curChildIndex=1;curChildIndexheading->text().compare(curChild->heading->text())>0) + { + this->moveBranchUp(curChild); + madeChanges=true; + } + } + }while(madeChanges); +} + + BranchObj* BranchObj::linkTo (BranchObj* dst, int pos) { // Find current parent and