From 1a24baa1a069be0b337a53f085537f253678a418 Mon Sep 17 00:00:00 2001 From: "Patrick K. O'Brien" Date: Mon, 12 May 2003 20:02:08 +0000 Subject: [PATCH] Fixed sort bug. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/wxPython/py/filling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wxPython/wxPython/py/filling.py b/wxPython/wxPython/py/filling.py index 6687d76e8a..0a4b701465 100644 --- a/wxPython/wxPython/py/filling.py +++ b/wxPython/wxPython/py/filling.py @@ -146,7 +146,7 @@ class FillingTree(wx.TreeCtrl): if not children: return keys = children.keys() - keys.sort(lambda x, y: cmp(x.lower(), y.lower())) + keys.sort(lambda x, y: cmp(str(x).lower(), str(y).lower())) for key in keys: itemtext = str(key) # Show string dictionary items with single quotes, except