I'm not sure why it's not working for you. I'm just using a normal query that is displayed as a table. btw .. I'm assuming that you are using ID as your sorting column.
This has to do with how Aware converts a query to SQL, but without getting into the details ..
-If you are using the BEST operator, you WILL have to select the sorting column to be displayed in AwareIM
-If you are not using BEST, you WILL NOT need to select the sorting column to be displayed in AwareIM
If don't want the column to display, you can put this in the Render script.
widget.hideColumn("ID");