diff --git a/pyglance/glance/compare.py b/pyglance/glance/compare.py index 211e27ad632a529473b70017377bd8dd18c880f0..439735dec3ce0a4e04213543c27b1cb8683bac9f 100644 --- a/pyglance/glance/compare.py +++ b/pyglance/glance/compare.py @@ -1024,8 +1024,8 @@ 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: + + for name, epsilon, missing in sorted(names, key=lambda X:X[0]): # make sure that it's possible to load this variable if not(aFile.is_loadable_type(name)) or not(bFile.is_loadable_type(name)) : @@ -1103,9 +1103,9 @@ 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 - - for name, epsilon, missing in names: - + + for name, epsilon, missing in sorted(names, key=lambda X:X[0]): + # make sure that it's possible to load this variable if not(aFile.is_loadable_type(name)) : LOG.warn(name + " is of a type that cannot be loaded using current file handling libraries included with Glance." +