Browse Source

wxGUI/dbmgr: fix sorting unicode issue

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@72534 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 7 years ago
parent
commit
d50b5aa3b5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gui/wxpython/dbmgr/base.py

+ 1 - 1
gui/wxpython/dbmgr/base.py

@@ -661,7 +661,7 @@ class VirtualAttributeList(wx.ListCtrl,
         if isinstance(
                 item1, types.StringType) or isinstance(
                 item2, types.StringTypes):
-            cmpVal = locale.strcoll(str(item1), str(item2))
+            cmpVal = locale.strcoll(GetUnicodeValue(item1), GetUnicodeValue(item2))
         else:
             cmpVal = cmp(item1, item2)