SPF-100 it’s on the list before SPF-11, as Dynamo it’s only reading the first digit of the number, but I want to sort them like you would typically do, as in; SPF-10, SPF-11, SPF-12 etc.
How can I get Dynamo to organize the numbers from small to big?
Use a String.Replace node to remove the "SPF-" and replace it with an empty string "".
Use a String.PadLeft to append some zeros on the front of the resulting value until all values are 3 or 4 characters long, giving you numbers like 0001, 0010, 0100.
Use a List.SortByKey to sort the data you want to work with (the list input) by the resulting 4 character strings (the keys input). Watch your list levels and lacing in case there are nested lists you want to work with.
If you have different prefixes in the original strings but always keep a hyphen between the prefix and suffix (ie: "other-999") you can use a String.Split node instead and then get the last item from each sublist instead of using the String.Replace.