Solved

Sort this TStringList

Posted on 2000-05-09
1
350 Views
Last Modified: 2010-04-04
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?
0
Comment
Question by:Kapusta
1 Comment
 
LVL 7

Accepted Solution

by:
Motaz earned 50 total points
ID: 2795464
Use Sort method

example:

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

Motaz
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Process Javascript errors with Delphi TWebBrowser 1 139
SUM 2 INTEGER ARRAYS INTO 1 10 100
JAudiorecorder record freezing the app 29 67
firemonkey keyboard covers the controls 1 26
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question