How to create a list with the indexes of the ordered data positions?

jospercomp shared this question 2 years ago
Answered

l1={97,181,329,254}

l2={97,181,254,329} sort data

l3={1,2,4,3} returns the indices of the value positions when the data is sorted.

Best Answer
photo

Sort(Sequence(Length(l1)), l1)

Comments (4)

photo
1

Zip(IndexOf(k,Sort(l1)), k, l1)

https://help.geogebra.org/t...

photo
3

Sort(Sequence(Length(l1)), l1)

photo
1

Thank you very much for your help!!!

photo
1

ind=Sort(Sequence(Length(l1)), l1)Sequence(Sum(Sequence(If(Element(ind, j) ≟ i, j, 0), j, 1, Length(ind))), i, 1, Length(ind))

photo
© 2023 International GeoGebra Institute