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 (3)

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
© 2023 International GeoGebra Institute