-
Sort all lists based on a column of one list
Hi.
I’ve got N lists called ivList[n] for n=1…N. Each list has got EXACTLY the same number of lines but different columns except for the first (that contains EXACTLY the same values for all lists).
I’d like to sort all N lists at once, based on a specific column of a single chosen list.
Say, for example, that I’ve got 3 lists (ivList1, ivList2, and ivList3) and I want to sort all lists based on the 2nd column of list ivList1 (ivList1.C2).
I tried with
ivList2.$sort(ivList1.C2)
ivList3.$sort(ivList1.C2)
but it doesn’t work since (I guess…) the calculation is not a reference to a column of the list that is calling the $sort() method.
Is there a fast built-in Omnis method/procedure to do this? Maybe using $sendall()…?
Many thanks.
Log in to reply.