Thank you in advance,
original code is as shown below, in any case that issue is solved by setting the mode to delphi,
SL :TStringList;
str :string;
i:Integer;
begin
SL := TStringList.Create;
SL.Add('8.3875');
SL.Add('10.456');
SL.Add('100');
SL.Add('15');
SL.Add('0.005');
SL.CustomSort(CompareFloat);
Another question arises in mind related with the operation of CustomSort function, what the index1 and index2 indicates in function CompareFloat(List: TStringList; Index1, Index2: Integer): Integer; are those two indices subsequent pointer to the list content?
Regards,