I am using the geoprocessing widget to run a GP task with feature set input and record set output. The GP task runs successfully, but the columns within the result datagrid are ordered alphabetically. This is also the case for the population summary example for the geoprocessing widget.
When I run the GP task in ArcGIS desktop, the results are ordered the way they are specified in the python script (not alphabetically). So I am thinking there is a function that is reordering the result columns. I thought that it would be in the GeoprocessingWidget.mxml and the GPOutputRecordSetParamItemRenderer.mxml, but I didn't see code that would resort the columns. Maybe I'm missing something.
Also, the results are returning the OBJECTID. The python script hides certain fields from the results table, but the OBJECTID remains visible even though the code has it as hidden.
Any help is greatly appreciated.