Fixed sort bug.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Patrick K. O'Brien
2003-05-12 20:02:08 +00:00
parent f0f3ef30ba
commit 1a24baa1a0

View File

@@ -146,7 +146,7 @@ class FillingTree(wx.TreeCtrl):
if not children: if not children:
return return
keys = children.keys() 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: for key in keys:
itemtext = str(key) itemtext = str(key)
# Show string dictionary items with single quotes, except # Show string dictionary items with single quotes, except