Reorders the data according to a column in the data set.
NOTE: This is an internal function used for testing the C++-function orderData
which is used inside the C++-function recordSwap()
to speed up performance.
orderData_cpp(data, orderIndex)
ordered data set.