This method is used to sort the data based on selected column
Smartcode
Syntax
ModelSort(model,column,order)
Parameters
- model(Required) – to get the model
- column(Required) – to get the column for sorting
- order(Required) – to get the order. It may be ascending or descending
Example
SortModel(‘EmployeeResponse’,’id’,’ASC’);
Directcode
Not Applicable.