listctrl.ColumnSorterMixin sorting problem

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.


www.fsrtechnologies.com

Thanks for forcing me to try the right thing:-).
Absolutely my pleasure. As I said, though, the credit belongs to Robin. He da BOMB!

Is this in a mail archive record somewhere, 'cause if not, I’ll post it as a follow up
to my question for benefit of coming-later folks. -ak

As far as I’ve been able to see, every message in this mailing list gets swept up by Google within about 24 hours or so of posting. (Which means that when I Google myself - which I admit I do occasionally - most of the hits are of my gaffes on this list. Oh well.) It’s also on Gmane. So I think we’re covered.

···

On Fri, Mar 14, 2008 at 8:51 PM, andrei kulakov andrei.avk@gmail.com wrote:


www.fsrtechnologies.com