New function to see current sort fields

Idea created by mislav on Oct 27, 2015

    The Get(SortState) function tells us if records are currently sorted, but it does not tell us what the sort order is; i.e. what fields are being sorted by, in what order, ascending or descending, etc. It would be helpful to have a Get function that would provide us with that type of information.


    Use case: A layout with subsummary parts requires a specific sort order. If a user wants to tweak the sorting, they may get the layout into a state where the subsummary parts aren't shown as they need to be. This new function would allow a developer to monitor for this situation and therefore prevent it from happening.