]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/document-backend.scm
Merge branch 'lilypond/translation' of ssh://git.sv.gnu.org/srv/git/lilypond into...
[lilypond.git] / scm / document-backend.scm
index c7477eae1a91575f2c541de5536b59880a139c5a..41c2aab60c9fc03831f14c5a3694b72138ba2b75 100644 (file)
@@ -1,4 +1,4 @@
-;;;; backend-documentation-lib.scm -- Functions for backend documentation
+;;;; document-backend.scm -- Functions for backend documentation
 ;;;;
 ;;;; source file of the GNU LilyPond music typesetter
 ;;;;
   (let* ((name (symbol->string (car interface)))
         (interface-list (human-listify
                          (map ref-ify
+                              (sort
                                (map symbol->string
                                     (hashq-ref iface->grob-table
                                                (car interface)
-                                               '()))))))
+                                               '()))
+                               ly:string-ci<?)))))
     (make <texi-node>
       #:name name
       #:text (string-append
@@ -113,11 +115,14 @@ node."
         (name (cdr (assoc 'name meta)))
         ;;       (bla (display name))
         (ifaces (map lookup-interface (cdr (assoc 'interfaces meta))))
-        (ifacedoc (map (lambda (iface)
-                         (if (pair? iface)
-                             (ref-ify (symbol->string (car iface)))
-                             (ly:error (_ "pair expected in doc ~s") name)))
-                       (reverse ifaces)))
+        (ifacedoc (map ref-ify
+                       (sort
+                        (map (lambda (iface)
+                               (if (pair? iface)
+                                   (symbol->string (car iface))
+                                   (ly:error (_ "pair expected in doc ~s") name)))
+                             ifaces)
+                        ly:string-ci<?)))
         (engravers (filter
                     (lambda (x) (engraver-makes-grob? name x))
                     all-engravers-list))