I was having a similar problem (a little different - I wasn’t clearing and repopulating, but placing the control on a Notebook; also, mine would only sort in reverse order. Still, I suspect the cause may be similar.)
Take a look at your OnColClick() - does it end with an event.Skip() ? If so, try leaving that off…
···
On Fri, Mar 14, 2008 at 5:50 PM, andrei kulakov andrei.avk@gmail.com wrote:
I’m running into a problem sorting listctrl.ColumnSorterMixin. On initial items of list, it works perfectly. When listctrl is cleared and reloaded with new items, it only sorts in ascending order. It seems that in fact on click on column title, it first sorts in descending order then immediately in ascending, so that what you see is only the results of the last sorting.