Permalink
Browse files

fixed sorting in addIndex()

  • Loading branch information...
1 parent 2d8e75b commit 4d68537c5747cb113612bb7a416c7f869d0c224c ajung committed Apr 4, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 zopyx/smartprintng/plone/transforms/transformation.py
@@ -13,6 +13,7 @@
import inspect
import uuid
import time
+import locale
import lxml.html
import PIL
@@ -1054,7 +1055,7 @@ def addIndexList(root):
div_ul = lxml.html.Element('ul')
div_indexes.append(div_ul)
- index_terms = sorted(indexes.keys())
+ index_terms = sorted(indexes.keys(), cmp=locale.strcoll)
for index_term in index_terms:
term_ids = indexes[index_term]

0 comments on commit 4d68537

Please sign in to comment.