Howdy,

I have a several Qlists of equal length. Of those one contains a correlation value that I need to sort all of the Qlists on. I would like to get a sort key for the correlation Qlist that indicates its index in the unsorted correlation Qlist that can be used to access values in the other Qlist.

If A is the unsorted correlation list and B is the sorted correlation list, the sort key IX should result in
Qt Code:
  1. A[IX[i]] = B[i];
To copy to clipboard, switch view to plain text mode 

I am porting code from MATLAB to QT and this functionality is build directly in MATLAB's sort() function. The MATLAB documentation for sort() can be found here.

This seems like it should be a routine thing. Does anybody have any suggestions?