mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2026-02-18 17:36:35 +01:00
Fixed the quick sort implementation.
This commit is contained in:
parent
2e1c24f789
commit
1ff36296fb
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user