for F# array, is there an easy way to return sorting indices along with the sorted array? like the sort() function from Matlab?
Background: I came from matlab/R, where manipulating array on indices are essential. I'd like to reproduce some index functions and trying to be able to pass indices array around as a variable in various functions. for this sort() function, one usage would be sorting several aligned arrays together based on any one of them. Maybe there are better ways to do this?