leeonsoft / txquery

Automatically exported from code.google.com/p/txquery
Other
0 stars 0 forks source link

Order by in ansi sequence #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
TxQuery sort string fields in ascii not in ansi sequence.
To crrect that SortCompare_S function in xqbase (line 2165) must be 
replaced by:
  Function SortCompare_S( Recno: Integer; Const Value: String ): Integer;
  Begin
    SetRecno( Recno );
    Result := AnsiCompareStr(FFields[Idx].AsString, Value);
    if IsDesc then Result := - Result;
  End;

Best regards
Branko

Original issue reported on code.google.com by bra...@burdian.si on 5 Dec 2009 at 8:44