How can I move an specific item of a list to first index?

Hello everyone

I would like to know how to move an specific item of a list to first index:

For example, I have currently this list:

imagen_2020-11-20_161455

I would like to move the “1” to the first place so I’d get [1,0,2] and [1,10,23]

Lots of thanks.

PD: The content of this post is outdated and inaccesible:

https://forum.dynamobim.com/t/moving-list-item-to-another-index/1617

How do you want it to function? Do you always want List Index 1 from the first list to move to Index 0 or do you want the list value of 1 to move to Index 0?

I want to move list value of 1 to move to Index 0.

I am sure there is a more elegant way without List.GetItemAtIndex Causing a warning but it works.

More elegant but with the addition of a package :confused: Package Name If Equal Return Index Updated

2 Likes