Wijmo UI for the Web
sort Field
wijmo.data Namespace > IDataView Interface : sort Field

An observable property that gets or sets the sorting to apply to the data view. When assigned, the data view refreshes.

Type: wijmo.data.IMutableObservable

Default: null

 

Syntax
var instance; // Type: wijmo.data.IDataView;
var value; // Type: IMutableObservable
value = instance.sort;
var sort : IMutableObservable;
Example
customerView.sort("firstName"); 
productView.sort("unitPrice desc, productName");
Remarks

The IDataView interface defines the following sorting formats:

See Also

Reference

IDataView Interface