Hi Yow;
For user sort control, I would:
1) Use the DW's Describe () method to get a list of the columns
- <DW Control Name>.Describe("DataWindow.Objects")
2) Open a Response dialogue with a column list from Step #1
3) Allow the user to pick the column(s) and the sort direction in the response window.
4) Use the CloseWithReturn command to return the column/sort list to the report dialogue
5) Use the SetSort() and Sort () methods to resort the report as required.
HTH
Regards ... Chris