summaryrefslogtreecommitdiffstats
path: root/src/classlist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/classlist.cpp')
-rw-r--r--src/classlist.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/classlist.cpp b/src/classlist.cpp
index fa93a73..b0a1b7f 100644
--- a/src/classlist.cpp
+++ b/src/classlist.cpp
@@ -34,15 +34,17 @@ static int compItems(void *item1,void *item2)
{
ClassDef *c1=(ClassDef *)item1;
ClassDef *c2=(ClassDef *)item2;
- int p1=0,p2=0;
static bool b = Config_getBool("SORT_BY_SCOPE_NAME");
- if (!b)
+ if (b)
{
- p1=getPrefixIndex(c1->className());
- p2=getPrefixIndex(c2->className());
+ return stricmp(c1->qualifiedName(),
+ c2->qualifiedName());
+ }
+ else
+ {
+ return stricmp(c1->className(),
+ c2->className());
}
- return stricmp(c1->className().data()+p1,
- c2->className().data()+p2);
}
int ClassList::compareItems(GCI item1, GCI item2)