Commit 72a5ed67 authored by Gus Grubba's avatar Gus Grubba

Sort messages by name instead of ID.

parent 95439be8
......@@ -531,8 +531,8 @@ messages_sort(QObject* a, QObject* b)
QGCMAVLinkMessage* aa = qobject_cast<QGCMAVLinkMessage*>(a);
QGCMAVLinkMessage* bb = qobject_cast<QGCMAVLinkMessage*>(b);
if(!aa || !bb) return false;
if(aa->id() == bb->id()) return aa->cid() < bb->cid();
return aa->id() < bb->id();
if(aa->name() == bb->name()) return aa->name() < bb->name();
return aa->name() < bb->name();
}
//-----------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment