agerlach
26th July 2010, 18:20
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
A[IX[i]] = B[i];
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 (http://www.mathworks.com/access/helpdesk/help/techdoc/ref/sort.html).
This seems like it should be a routine thing. Does anybody have any suggestions?
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
A[IX[i]] = B[i];
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 (http://www.mathworks.com/access/helpdesk/help/techdoc/ref/sort.html).
This seems like it should be a routine thing. Does anybody have any suggestions?