Provides a sort order for a data container that displays a collection of items.
Available since
1.4.0
.Variables
sortOrder:SortOrder
The currently selected sort order.
When the value of the sortOrder property changes, the component
will dispatch an event of type FeathersEvent.SORT_ORDER_CHANGE.
The following example changes the sort order:
gridView.sortOrder = SortOrder.ASCENDING;
The following example listens for when the sort order of a GridView
component changes, and it requests the new sort order:
var gridView = new GridView();
function sortOrderChangeHandler(event:FeathersEvent):Void
{
var gridView = cast(event.currentTarget, GridView);
trace("sort order change: " + gridView.sortOrder);
}
gridView.addEventListener(FeathersEvent.SORT_ORDER_CHANGE, sortOrderChangeHandler);Available since
1.4.0
.