name of sorted column in table view

When in table view mode, clicking on a column header toggles between sorting the data in ascending and descending order of that column.

If there are multiple columns, is it programatically possible to determine the name of the column by which the table is sorted?

foundset.getCurrentSort()?

Thanks for the fast and precise response João.