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 ArticleAnswer 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 ArticleHow 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