More Samples
Download Wijmo

Stable Sort

The CollectionView class has a stableSort property that allows you to keep the original sequence of items when sorting by any fields in the data objects.

For example, this sample creates a CollectionView based on a list of items sorted by Country and ID. If you sort the grid by any property (e.g. Active), items with the same sort property value will be sorted according to the original order (sorted by Country and ID)

The stableSort property is set to false by default because it does have a performance cost, and therefore should be used only when needed.