Last active
December 14, 2015 22:38
-
-
Save rjattrill/5159482 to your computer and use it in GitHub Desktop.
Sort an ArrayCollection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Sort by taskItemId | |
var dataSortField:SortField = new SortField(); | |
dataSortField.name = "taskItemId"; | |
dataSortField.numeric = true; | |
dataSortField.reverse(); | |
var numericDataSort:Sort = new Sort(); | |
numericDataSort.fields = [dataSortField]; | |
this.taskItemAc.sort = numericDataSort; | |
this.taskItemAc.refresh(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To sort a datagrid by default, sort the AC first.