Ascending 1D-array sorting with sorting of the associated 2D-array by columns (idx = 2) or by rows (idx = 1) Based on: Sebastian Boßung, Sorting Algorithms in Pascal http://privat.schlund.de/b/bossung/prog/delphi/sorting.html
Source code
procedure QSortF2D ( const A : IFArr1D ; const B : IFArr2D ; Ascending : boolean ; st : TSliceType )