var value = obj.getSortProperty(name); // Retrieve property by name
obj.setSortProperty(name, value); // Assign property value
obj.defineSortProperty(name, value); // Define new property
var external = obj.getSortModel(); // Get reference to external model
obj.setSortModel(external); // Assign external model
obj.clearSortModel(); // Clear/reset all properties
column | Index of the last sorted column. |
direction | Sort direction. |