Quantcast
Channel: How do I sort a TStringList according to specific rules? - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by NGLN for How do I sort a TStringList according to specific rules?

So you first want to sort on the second column, and then on the fourth column. Then you need TStringList.CustomSort.From the help about the TStringListSortCompare function type:Index1 and Index2 are...

View Article



Answer by David Heffernan for How do I sort a TStringList according to...

Define your own compare function that picks out that part of your strings that you wish to use for ordering:function MyCompare(List: TStringList; Index1, Index2: Integer): Integer; function...

View Article

How do I sort a TStringList according to specific rules?

I have a TStringList that have quite many lines of strings.What I want to do now is to sort this TStringList on certain values depending on which column in the TStringList they are at.For...

View Article
Browsing latest articles
Browse All 3 View Live


Latest Images