I wonder if their algorithm is in stl or in Qt, which sorts the double array and returns the indices of the sorted elements in the original list. For instance. L = 1, 2, 5, 3 L_sort = 1, 2, 3, 5 Indexes = 1, 2, 4, 3
So that I can subsequently compute AnotherList [Indexes] (the same order prevails in both lists with respect to the original list L).
In the end, I thought about creating a QList, each MyStruct containing two members, one LType type of the same type as the elements in L, the other of the same type as AnotherType as elements in AnotherList. And then we order in relation to members like LType. However, I have this idea, I do not know how to act in Qt.
Thank you and welcome
source share