diff options
| author | Georg Brandl <georg@python.org> | 2009-06-16 22:08:54 +0200 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2009-06-16 22:08:54 +0200 |
| commit | 10f747916ae786181d78737de9adfb236df575cc (patch) | |
| tree | e4cbb3eaefbe3e692398a0dbff260d33484af275 /sphinx/directives | |
| parent | 68ee6acd4612722cc5f07019c2a4510ebc5e3802 (diff) | |
| download | sphinx-10f747916ae786181d78737de9adfb236df575cc.tar.gz | |
#167: Make glossary sorting case-independent.
Diffstat (limited to 'sphinx/directives')
| -rw-r--r-- | sphinx/directives/other.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/directives/other.py b/sphinx/directives/other.py index 80c88f5f..4ca09ddc 100644 --- a/sphinx/directives/other.py +++ b/sphinx/directives/other.py @@ -449,7 +449,7 @@ class Glossary(Directive): 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] |
