This results in identical XML if the session did not change, allowing
to keep track of state-changes easily (e.g. session file in git).
Thanks to deva (again).
XMLNode* node = new XMLNode (state_node_name);
char buf[64];
string str;
- vector<string>::iterator ci;
int n;
LocaleGuard lg (X_("C"));
Glib::Threads::Mutex::Lock lm (io_lock);
pnode->add_property (X_("name"), i->name());
if (i->get_connections (connections)) {
+ vector<string>::const_iterator ci;
+ std::sort (connections.begin(), connections.end());
for (n = 0, ci = connections.begin(); ci != connections.end(); ++ci, ++n) {