Показать сообщение отдельно
  #1  
Старый 28.02.2016, 22:13
Mama_boys Mama_boys вне форума
Прохожий
 
Регистрация: 22.02.2016
Сообщения: 2
Версия Delphi: Delphi XE5
Репутация: 10
По умолчанию Как отсортировать TList<integer> по убыванию?

Делаю так:
Код:
var List:TList<integer>;

function ListSort(Item1, Item2: Pointer): Integer;
begin
if integer(item1)>=integer(item2) then result:=0 else result:=1;
end;

begin
List:=TList<integer>.Create;
List.Add(1);
List.Add(4);
List.Add(3);
List.Sort(ListSort);
end;
Выдаёт ошибку, не актуальные параметры.
Ответить с цитированием