is a nice way to get the rank of the values.