Unverified Commit 5c2fd315 authored by Gus Grubba's avatar Gus Grubba Committed by GitHub

Merge pull request #8211 from mavlink/pr-sort-by-name

Sort messages by name instead of ID.
parents 95439be8 72a5ed67
......@@ -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