Listviews new "Sort Notify" property not working correctly?

I don't see the "current" column generating a negative number in control.index since 13.25 with Sort Notify active. The col. nr. is always positive.

FWIW, it is working here. I think you're confusing Control.index (which doesn't exist) with msg.index, which returns the corresponding value as documented. (negative if it's the current sorted column).


dlgtest.opusscriptinstall (1.6 KB)

OK thanks @errante - No I was using msg.index, but apparently I had misinterpreted the explanation.

I thought I had to pass a negative column number in order to enforce reverse order, and a normal (positive) number to enforce regular order (therefore I misinterpreted the resulting value in msg.index in the same way). Instead, passing a negative number commands the reversing of the sort order, whatever its current order is. It's a different logic than what seemed natural to me. (Instead of passing msg.index * -1 to flip the sort order, I don't need to flip it at all to reverse it - just pass the negtive number back again - so it's an easier logic to put to use, I get it). It works fine now.