Page 1 of 1

Can table be sorted in reverse order

Posted: Tue 20 Mar 2012 08:37
by softsmith
I often need to sort a VirtualTable in reverse sort order.
I set the IndexfieldNames to the field I want to sort, but is there an option to sort it from Z to A instead of A to z ?

Thanks

Posted: Tue 20 Mar 2012 09:14
by AlexP
Hello,

For specifying sorting order, besides the field name in the IndexFieldNames property, you should specify the sorting order (asc or desc), for example

VirtualTable.IndexFieldNames := 'NAME desc';

Posted: Tue 20 Mar 2012 19:22
by softsmith
Thank you for the information. Just what I wanted to hear. You have made my day.

Posted: Wed 21 Mar 2012 07:21
by AlexP
Hello,

If you have any other questions, feel free to contact us.