diff --git a/pyglance/glance/compare.py b/pyglance/glance/compare.py
index b1ab3dca6a5e47525a819354f697faaea8ed65e5..8ae114c6b767212f472caa0eb14bbdc6182dff1d 100644
--- a/pyglance/glance/compare.py
+++ b/pyglance/glance/compare.py
@@ -1023,8 +1023,10 @@ def stats_library_call(afn, bfn, var_list=[ ],
     LOG.debug(str(names))
     doc_each  = do_document and len(names)==1
     doc_atend = do_document and len(names)!=1
-    
-    for name, epsilon, missing in names:
+
+    sorted_names = sorted(names, None, lambda X:X[0]);
+
+    for name, epsilon, missing in sorted_names:
         
         # make sure that it's possible to load this variable
         if not(aFile.is_loadable_type(name)) or not(bFile.is_loadable_type(name)) :
@@ -1102,8 +1104,10 @@ def inspect_stats_library_call (afn, var_list=[ ], options_set={ }, do_document=
     LOG.debug(str(names))
     doc_each  = do_document and len(names)==1
     doc_atend = do_document and len(names)!=1
+
+    sorted_names = sorted(names, None, lambda X:X[0]);
     
-    for name, epsilon, missing in names:
+    for name, epsilon, missing in sorted_names:
         
         # make sure that it's possible to load this variable
         if not(aFile.is_loadable_type(name)) :