How to determine view sort criteria programmatically

I have a view that is sortable on several columns. Using the Notes Client (Standard), from an action button in this view, I am trying to determine which column or field the data is sorted on. Is there any way to do this using formula or LotusScript?

Alternatively, is there a way of running a script or formula when a user clicks on the column heading to sort by that column?

O/S: Win10

Notes Client is Release 11.0.1 Revision 20200321.0805-MAIN

Domino Designer is Release 11.0.1 Revision 20200321.0642

Any assistance would be much appreciated.

You can use LotusScript's IsSorted Property to check which columns were sorted, refer to the link below:


https://help.hcltechsw.com/dom_designer/9.0.1/appdev/H_ISSORTED_PROPERTY_COLUMN.html