+
+ vector<SGPropertyNode *> children;
+ for (int i = 0; i < node->nChildren(); i++)
+ children.push_back(node->getChild(i));
+ std::sort(children.begin(), children.end(), CompareNodes());
+
+ vector<SGPropertyNode *>::iterator it, end = children.end();
+ for (it = children.begin(); it != end; ++it) {
+ SGPropertyNode *child = *it;