Próbuję posortować TList metodą TList.Sort(), jednak wywala to Access Violation zawsze wtedy, gdy funkcja porównująca 2 itemy, zwraca co innego, niż 0.
function CompareItems(Item1 : Pointer; Item2 : Pointer):Integer;
begin
Result:=-1;
end;
ContactList.Sort(CompareItems);
Co znowu jest źle?