GetSortOrder() Function

Idea created by ByteTheBullet on Apr 4, 2017

    It would be nice to have a function named GetSortOrder() that would return the sort order of the current found set. It's apparent that this information is available, as a user can sort a found set, and if they sort it again, the previous sort order appears. This function would return that sort order in a method that makes this useful for developers and scripting. For example, different exports could be performed based on the sort order of a found set. Or different layouts could be loaded based on the sort order. It could also be useful for labelling exports, charts, etc.