Sorting List - Group by numbers

Hi, the list has 4x140 different views. trying to sort the by the first numbers. Think i could do it if i knew how to isolate numbers in a string

This is how it should look with the view names in it

M1
M1
M1
M1
M2
M2
M2
M2
yada yada up to
M139
M139
M139
M139
M140
M140
M140
M140

String.Split at the “-”, list.first item with longest lacing, list.flatten. String.Remove to drop the M as you did before.

There are also some very efficient methods of doing this with Python.

1 Like

Thanks so much man! dono what id do without you haha, you guys are so smart