Hi,
This should do the trick:
var masterListSort:Sort = new Sort();
var titleSortField : SortField = new SortField(title, true, false,
false);
masterListSort.fields = [titleSortField];
masterList.dataProvider.sort=masterListSort;
masterList.dataProvider.refresh();
-TH
Cynergy Systems
--- In
Thanks Tim. I implemented your code which compiles just fine.
However, when I try to go to the next step by creating a cursor then
trying to do a findfirst, I get the error:
Find criteria must contain at least one sort field value.
Here is the code now:
You might try myCursor.findFirst({title:b}); It looks like if the
underlying array isn't simple and you perform a field sort, you must
look for that field with findFirst. If this doesn't work, you can
always abandon the cursor approach and simply use the built in
methods of the
3 matches
Mail list logo