SMART datagrid v.1 > Classes > GridBase
Sort the columns specified by parameter columns array in order.
Each item of array can be string or Column Object. And, the columns which are not connected to DataField will be excluded. If want to explicitly specify data field rather than column, you can call orderByFields method.
If do not specify columns, the existing sorting state will be removed all.
grid.orderBy(['colName', 'colAddr']);
// Remove sorting state.
grid.orderBy();