Hi ABHIRAM,
It is clear that you are implementing custom sorting, where
the first tap on the header sorts in ascending order, the second tap sorts in
descending order, and the third tap is intended to clear the sort. While you
mentioned that ascending and descending sorting works fine, you are unable to
clear the sort on the third tap. You can achieve this by using the tri-state
sorting property. We have shared the user guide link for your reference.
Ug Link : Tri-state
sorting
Regards,
Sethupathy D.