Hi Wills,
Greetings from Syncfusion software,
Based on your requirement you need to cancel the sorting using the `actionBegin` event of EJ2 Grid.
By default, in EJ2 Grid the sorting operation occurs in three steps Ascending, Descending and clear sorting. But when we grouped a column then the column will be sorted, and it is the default behaviour of EJ2 Grid even if you do not define the column in sortSettings.
In the attached sample the grid is grouped based on the `ID` column so only sort by ascending and sort by descending occurs in that column. The `Freight` column of your grid is in the descending order and when you click on the header sorting will be cleared. When sorting is cleared the `e. columnName` will be empty and the condition `e.requestType == 'sorting' && e.columnName` will fail and the line `e.cancel = true;` will not be executed leading the sorting to be cleared.
If you do not want the sorting to be cleared you can achieve it by removing `e.columnName` from your condition.
Regards,
Joseph I