Sort values, group the same values and replace with index

Hello, what is the simplest way to transofrm sorted values, group unique values and index them.

My final list should be like with red values. You get the idea…

Create Set does exactly this

wow super easy then

Knowing how sets work is a secret super power :slight_smile:

(can’t say I’ve mastered them, but there are all sorts of neat tricks you can do)

i had to round values to mm because it took slightest difference into account.