blob: 5e35ce6febfb1d97b7141becc618c09ce580a965 [file] [log] [blame]
Sample Name ---- Spark Sort and Spark SortField
Introduction:
Spark Sort provides the sorting information required to establish a sort on an existing view (ICollectionView interface or class that implements the interface). After you assign a Sort instance to the view's sort property, you must call the view's refresh() method to apply the sort criteria.
Spark SortField provides the sorting information required to establish a sort on a field or property in a collection view. SortField class is meant to be used with Sort class.
Usage of the sample code:
1. Select a Locale from the locale comboBox first. It will use en_US as the default choice.
2. Choose a sorting priority from the radio button group to sort multiple columns in data grid.
3. Or you can click a cloumn header to sort a single one cloumn in data grid.
4. Then, the data in below data grid will be sorted in the same order as the sorting priority setting.