diff -r a9fe976e01a6 -r 6fdccfe13a54 mapeditor.cpp --- a/mapeditor.cpp Tue Oct 16 09:53:22 2007 +0000 +++ b/mapeditor.cpp Mon Oct 22 09:50:08 2007 +0000 @@ -2174,7 +2174,7 @@ void MapEditor::addMapInsertInt (const QString &path, int pos) { BranchObj *sel=xelection.getBranch(); - if (sel); + if (sel) { QString pathDir=path.left(path.findRev("/")); QDir d(pathDir); @@ -2330,6 +2330,21 @@ } } +void MapEditor::sortChildren() +{ + BranchObj* bo=xelection.getBranch(); + if (bo) + { + if(bo->countBranches()>1) + { + bo->sortChildren(); + saveStateChangingPart(bo,bo, "sortChildren ()",QString("Sort children of %1").arg(getName(bo))); + mapCenter->reposition(); + ensureSelectionVisible(); + } + } +} + void MapEditor::linkTo(const QString &dstString) { FloatImageObj *fio=xelection.getFloatImage();