SMART datagrid v.1 > Classes > GridBase
Sort in order of the columns specified by parameter columns array.
You can specify each field by field index or field name. And, if want to sort by column rather than field, you can call orderBy method.
If do not specify fieldNames, the existing sorting state will all be removed.
grid.orderByFields(['fld_name', 'fld_addr']);
// Remove sorting state.
grid.orderByFields();