chiark / gitweb /
doc/list-exports.lisp: Sort sibling classes by name in the tree.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 30 Aug 2015 09:58:38 +0000 (10:58 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 13 Sep 2015 17:28:27 +0000 (18:28 +0100)
doc/list-exports.lisp

index 71a06d903a3f73f3bfb87e847fb8d31a4504ceaf..710da87d4507f7027a19eec8362a9a21f70b953d 100644 (file)
@@ -181,7 +181,8 @@ (defun analyse-classes (package)
                                                     package))
                               (remove super
                                       (sb-mop:class-direct-superclasses this))))
-              (dolist (sub (reverse (gethash this subs)))
+              (dolist (sub (sort (copy-list (gethash this subs))
+                                 #'string< :key #'class-name))
                 (walk-down sub this (1+ depth)))))
       (walk-down (find-class t) nil 0))))
 
@@ -206,9 +207,10 @@ (defun report-project-symbols ()
   (labels ((components (comp)
             (slot-value comp 'asdf::components))
           (files (comp)
-            (remove-if-not (lambda (comp)
+            (sort (remove-if-not (lambda (comp)
                              (typep comp 'asdf:cl-source-file))
-                           (components comp)))
+                                 (components comp))
+                  #'string< :key #'asdf:component-name))
           (by-name (comp name)
             (find name (components comp)
                   :test #'string= :key #'asdf:component-name))