Is there any way of idiomatically finding the sort order of a list, without sorting it?
So if I had
1 4 3 5
It'd return
0 2 1 3
Rather than sorting it into place?
#Rust #Python are the communities I usually ping for this sort of thing, but it's kinda language agnostic.