Skip to content

Commit 420b8f4

Browse files
committed
issue #10776 Provide the ability to sort implemented/re-implemented list
In principle members are already sorted, but this is based on the name, it should also be done on the qualified name. (sorting is a difficult topic as there are multiple thoughts about what the correct order of the sorting might be).
1 parent 19436e4 commit 420b8f4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/memberlist.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ int genericCompareMembers(const MemberDef *c1,const MemberDef *c2)
5959
}
6060
// sort on name
6161
int cmp = qstricmp(c1->name(),c2->name());
62+
// then on qualified name
63+
if (cmp==0)
64+
{
65+
cmp = qstricmp(c1->qualifiedName(),c2->qualifiedName());
66+
}
6267
// then on argument list
6368
if (cmp==0 && !c1->argsString().isEmpty() && !c2->argsString().isEmpty())
6469
{

0 commit comments

Comments
 (0)