[GRASS-SVN] r36371 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Mar 13 17:36:46 EDT 2009


Author: cmbarton
Date: 2009-03-13 17:36:45 -0400 (Fri, 13 Mar 2009)
New Revision: 36371

Modified:
   grass/trunk/gui/wxpython/gui_modules/gselect.py
Log:
Use dictionary sort for lists of GIS elements

Modified: grass/trunk/gui/wxpython/gui_modules/gselect.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/gselect.py	2009-03-13 21:36:18 UTC (rev 36370)
+++ grass/trunk/gui/wxpython/gui_modules/gselect.py	2009-03-13 21:36:45 UTC (rev 36371)
@@ -227,7 +227,7 @@
             self.seltree.SetItemTextColour(dir_node,wx.Colour(50,50,200))
             try:
                 elem_list = filesdict[dir]
-                elem_list.sort()
+                elem_list.sort(key=str.lower)
                 for elem in elem_list:
                     if elem != '':
                         fullqElem = elem + '@' + dir



More information about the grass-commit mailing list