Hi Neha
Thank you for contacting Microsoft Open Specifications Support.
Looking at WordprocessingML ISO29500-1 Standard, section 17.4 Tables and Working with WordprocessingML Table Class with Open XML SDK. It appeared they don't have any higher functions like Table Sorting.
There are couple options – Office VBA - Table.Sort method, use HTML Table Sorting, or Table.Sort via Power Query.
And you can also reach out to Eric White to see if he plan to add support for Table.sort with Open-XML-PowerTools https://github.com/EricWhiteDev/Open-Xml-PowerTools
Let me know if this helped answer your question.