>>>
>>>You can set
Listview.Object.Sorted = .F.
>>
>>
>>I see no change in the behavior when I add that line to the KeyPress or Init methods.
>
>Thre's no reason to put it into Keypress. Did you check what is the value of Sorted property in KeyPress? Maybe you've some other code that sets it to .T.?
If I check it's value on the Keypress it is .F., and the items are not sorted.