Hello all
Hello all,
Merry Christmas,
Does anyone know of any array sort method similar to this for Delphi (with the two array parameters, key and value with a comparer method).
Regards.
https://msdn.microsoft.com/en-us/library/2b9cyk6x(v=vs.110).aspx
Merry Christmas,
Does anyone know of any array sort method similar to this for Delphi (with the two array parameters, key and value with a comparer method).
Regards.
https://msdn.microsoft.com/en-us/library/2b9cyk6x(v=vs.110).aspx
Here's a naive implementation I whipped up. Didn't focus on performance, but shouldn't be too bad.
ReplyDeleteCan easily be extended to handle more auxiliary arrays to be sorted based on the key array.
gist.github.com - Paired sort example
Asbjørn Heid , thanks a lot sir,
ReplyDeleteYou just made my day.. :)