See also general description of XTG Grid.
If you want to sort, click right mouse button on the first title line of the column,
and select sort asc or sort desc
As in the searching,
there are 2 sort modes: DB and GRID displayed in the status bar.
You can sort data in a grid in a GRID mode,
and after pressing Ctrl+Enter, a real SQL command is executed,
e.g. select * from ACUSTOMER order by NAME asc;
and you are in a DB mode.
For better understanding search/sort modes,
please read chapter Grid: Search.