LOL, that's simple. the 'DESC' is the option but 'ASC' is the default and doesn't need to be redefined. Sort of like calling a SQL command 'SORT BY
aField ASC ASC'
FYI Here is a simple option for a quick sort toggle on title click
procedure TForm1.DBGrid1TitleClick(Column: TColumn);
begin
if POS('DESC',SQLCheckQurey.IndexFieldNames)=0 then
SQLCheckQurey.IndexFieldNames := Column.FieldName + ' DESC'
else
SQLCheckQurey.IndexFieldNames := Column.FieldName;
SQLCheckQurey.First;
end;
Hope this helps anyone, I read a lot of really cool stuff about Grid sort and I found it worth the read