Fixed the quick sort implementation.

This commit is contained in:
Henrique Gottardi Werlang 2022-05-04 11:01:13 -03:00 committed by Michael Van Canneyt
parent 2e1c24f789
commit 1ff36296fb

View File

@ -519,7 +519,7 @@ implementation
class procedure TCustomArrayHelper<T>.Sort(var AValues: array of T;
const AComparer: IComparer<T>);
begin
QuickSort(AValues, 0, Length(AValues), AComparer);
Sort(AValues, AComparer, Low(AValues), Length(AValues));
end;
class procedure TCustomArrayHelper<T>.Sort(var AValues: array of T;