wijmo.data Namespace > IShape Interface : sort Field |
Default value: null
Indicates one or more field names on which to sort the data. By default, the data is sorted in ascending order. For more information about setting the sorting directions, ascending or descending, refer to ISortDescriptor.
Javascript (Usage) | |
---|---|
var instance; // Type: wijmo.data.IShape; var value; // Type: any value = instance.sort; |
Javascript (Specification) | |
---|---|
|
$(document).ready(function () { var productView = new wijmo.data.ArrayDataView(sourceData()); $("#demo-grid").wijgrid({ data: productView, });
$("#sortId").click(function () { productView.sort("Product_ID"); }); $("#sortPrice").click(function () { productView.sort("Unit_Price"); });