If you don't specify an initial sort field on a browse, what determines the initial sort order and how do you find out what it is programmatically?
It seems like Progress looks for any indexed fields (be it database table or temp-table) in the browse, and uses the first one it comes to within {&FIELDS-IN-QUERY-{&BROWSE-NAME}}. But without trawling through _File, _Index, etc. I can't see an easy way of finding out what it uses.
The reason I want to know is because I'm implementing a column sorting mechanism where the first click sorts ascending, the second sorts descending, and a third reverts back to the initial sort order.
It seems like Progress looks for any indexed fields (be it database table or temp-table) in the browse, and uses the first one it comes to within {&FIELDS-IN-QUERY-{&BROWSE-NAME}}. But without trawling through _File, _Index, etc. I can't see an easy way of finding out what it uses.
The reason I want to know is because I'm implementing a column sorting mechanism where the first click sorts ascending, the second sorts descending, and a third reverts back to the initial sort order.