Hi Sarvana
Greetings from Syncfusion support
We have validated your query and understand that you want to perform sorting operation in the grid. By default, in EJ2 Grid all grid actions(paging, sorting, filtering, etc.,) are performed based on the dataSource value only.
We have suspect that you are customize the values displayed in the grid and this is the reason that the sorting operation are not performed in the grid. The sorting will not be performed based on the values that are displayed, since it used for display purpose only.
if you want to customize the sorting operation in the grid on your own, you need to write the logic for sorting in the grid.
If perform custom sorting in the Grid component, you can use sortComparer property of the grid column to achieve your requirement. Please refer the below documentation for more information.
In the below documentation using sortComparer we have showed null values always at the bottom. Similarly using sortComparer you can apply your own logic for performing custom sort action.
Please let us know if you need further assistance.
Regards,
Vignesh Sivagnanam