The sort feature of a UltimateListCtrl
, does not work when SetItemData()
is not called with a correct parameter (unique int) for each item.
For example :
- When not calling
SetItemData()
at all, the sorting function is called with bothitem1
anditem2
set to 0. - When calling
SetItemData(item, 1)
for each item, the sorting function is called with bothitem1
anditem2
set to 1.
So, SetItemData()
must be called with a unique int for each item in the list.
If this behavior is intended, it should be specified in the documentation.
Note : Using wxPython 4.1.0 (same behavior with 4.0.7post2)