diff -r 53c66cb9f5bd -r 6cdc2e7b1937 mapeditor.cpp --- a/mapeditor.cpp Mon Oct 22 09:50:03 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();