IndexFieldNames problem
Posted: Thu 26 Aug 2010 10:28
Hi,
I have a problem related to IndexFieldNames on a query.
I have 3 entries int a table "users" and for "name" column I have: aa, ff, gg.
The code for sorting column is:
MyQuery1_bookings->IndexFieldNames = "name ASC CIS";
MyQuery1_bookings->IndexFieldNames = "name DESC CIS";
The problem is that the result is: ff, gg, aa for ASC and aa, gg, ff for DESC.
The problems seems to be "aa" because if a change it to "ab", "abaa" it works fine.
Is it a bug, or I done something wrong?
Thanks
I have a problem related to IndexFieldNames on a query.
I have 3 entries int a table "users" and for "name" column I have: aa, ff, gg.
The code for sorting column is:
MyQuery1_bookings->IndexFieldNames = "name ASC CIS";
MyQuery1_bookings->IndexFieldNames = "name DESC CIS";
The problem is that the result is: ff, gg, aa for ASC and aa, gg, ff for DESC.
The problems seems to be "aa" because if a change it to "ab", "abaa" it works fine.
Is it a bug, or I done something wrong?
Thanks