type TStringListSortCompare = function(List: TStringList; Index1, Index2: Integer): Integer;
procedure CustomSort(Compare: TStringListSortCompare); virtual;TStringListSortCompare的返回值和index1,index2有关
如果index1>index2 返回大于0的数
如果index1<index2 返回小于0的数
等于不说了。^_^!