Index: src/memberlist.cpp
===================================================================
--- src/memberlist.cpp	(revision 763)
+++ src/memberlist.cpp	(working copy)
@@ -60,7 +60,11 @@
     else if (ord2 > ord1)
       return 1;
   }
-  return stricmp(c1->name(),c2->name());
+  int cmp = stricmp(c1->name(),c2->name());
+  if (cmp != 0)
+      return cmp;
+  else
+      return c1->getDefLine() - c2->getDefLine();
 }
 
 /*! Count the number of members in this list that are visible in
@@ -792,7 +796,11 @@
 {
   MemberDef *c1=(MemberDef *)item1;
   MemberDef *c2=(MemberDef *)item2;
-  return stricmp(c1->name(),c2->name());
+  int cmp = stricmp(c1->name(),c2->name());
+  if (cmp != 0)
+      return cmp;
+  else
+      return c1->getDefLine() - c2->getDefLine();
 }
 
 
