Andy C. answered 07/21/17
Tutor
4.9
(27)
Math/Physics Tutor
Well, you can write a generic sort routine which accepts a function pointer or delegate function that does
the comparison of the records being sorted, which in this case, is a permutation vector.
There are several sorting algorithms available.
The fastest is the Quicksort algorithm.
The slowest would be the BubbleSort.