nielsAD / lape

Scripting engine with Pascal-like syntax for FPC and Delphi
118 stars 28 forks source link

Add Sort(<Array>) which uses comparison operators. #158

Closed ollydev closed 3 years ago

ollydev commented 3 years ago

Add Sort(, TCompareFunction) which uses a custom compare function: procedure(constref L,R:): Int32;

"Sorted" variants exist which do not modify input and returns a sorted copy.