How to determine current sort order

Discussion created by user28097 on Jan 17, 2014
Latest reply on Jan 18, 2014 by user28097

I see the Get ( SortState ) function that returns whether the current table is sorted or not. Is there a way to determine the current sort order?


The idea is that I would like to allow the user to click a column header in a list view and sort the list based on that field. This is easy and is working, but I would also like to give a visual cue (a little triangle on that column as is common) as to which column is the current sort in the column header. I can do this by setting a variable each time a column header is clicked, but was hoping there is a way to programmatically determine the sort order.