Sorting a list of numbers in a logical order

  1. Use a String.Replace node to remove the "SPF-" and replace it with an empty string "".
  2. 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.
  3. 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.