Table Sorting issue

The issue: on clicking on any table header the table is sorted upside down (last entry on top) and vice versa.
Data is from API source in serverconnect passed to Data View. Then data view is being used to populate the table.
I have used the session storage manager for sort and dir.

Please advise.
Wappler version: 3.3.0
Server: NodeJS