Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ArrayCollection removing sort

Tags:

apache-flex

After applying a numeric sort to my dataprovider(Array Collection), I can not reorder the items via a tilelist. Do I need to remove the sort from the arrayCollection. If so, is it just a case of setting collection.sort = null ?

var sortField:SortField=new SortField();
sortField.name="order";
sortField.numeric=true;
var sort:Sort=new Sort();
sort.fields=[sortField];
like image 697
Chin Avatar asked Feb 27 '26 03:02

Chin


1 Answers

Setting the sort to null should indeed remove the sort for the collection. You might need to do an optional refresh().

like image 137
Christophe Herreman Avatar answered Mar 01 '26 18:03

Christophe Herreman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!