You would need to do one of two things depending on what functionality you want.

If you have a previous sort that you want to reinstate, then you need to:

var savedSort:Sort = someListCollection.sort;

someListCollection.sort = new Sort();
//implement all your sort and find logic...
//when you are done...

someListCollection.sort = savedSort;
someListCollection.refresh();

If all you need is to clear the sort then you should just be able to assign the sort to null.

someListCollection.sort = null;
someListCollection.refresh();


- Kevin


On Dec 26, 2007, at 12:27 PM, markgoldin_2000 wrote:

I am using Sort to be able to run Find...() commands on cursors. But at
the end I dont want to have it shown sorted, so how can I get rid of
sorting after I have found an item in it?




Reply via email to