[wxPython] sort a wxListCtrl

whats the best(=most performant) way to sort a wxListCtrl.

i cant use .SortItem(…CompareCallback) -

( this would sort on the ITEMDATA. )

or whats the best way to swap two rows in a wxListCtrl.

···

===========================================================
Heinl Raimund SSH - Software Systeme Heinl
gepr.Wirtschaftsinformatiker IHK Am Galling 3
Tel. 09151 / 7 10 99 91217 Hersbruck
Fax. 09151 / 90 50 51
http: coming soon
Email: heinlr@gmx.de

whats the best(=most performant) way to sort a wxListCtrl.
i cant use .SortItem(...CompareCallback) -
( this would sort on the ITEMDATA. )

See wxPython/lib/mixins/listctrl.py for one way to do it. You can either
borrow code from this class, or just mix it in with your own class to get a
list control that sorts columns when the header is clicked on.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!