Sort this TStringList

Can someone point me to a Delphi 2 function or procedure that will sort the contents of a TStringList in ascending and/or descending order?
KapustaAsked:
Who is Participating?
 
MotazConnect With a Mentor Commented:
Use Sort method

example:

var
  List: TStringList;
begin
  List:= TStringList.Create;
  List.Add...
  .....
  // Finally:
  List.Sort;
end;

Motaz
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.