Commits

Georg Brandl committed b9b969d

#167: Make glossary sorting case-independent.

  • Participants
  • Parent commits a084b9e

Comments (0)

Files changed (2)

 Release 0.6.2 (in development)
 ==============================
 
+* #167: Make glossary sorting case-independent.
+
 * #196: Add a warning if an extension module doesn't have a
   ``setup()`` function.
 

sphinx/directives/other.py

                 li.insert(0, indexnode)
                 items.append((termtext, li))
         if 'sorted' in self.options:
-            items.sort()
+            items.sort(key=lambda x: x[0].lower())
         new_dl.extend(item[1] for item in items)
         node.children = [new_dl]
         return [node]