Hello Cad Gurus,

I have to sort lists of numbers in a lot of drawings in multiple tabs and those numbers can be found in texts, mtexts or attributes. The lists are quite long and would take me ages to sort them in order. Any help with the gurus will be highly appreciated.

Examples of a string with numbers and symbols to be sorted numerically:

3 2 4 5 1 to be 1, 2, 3, 4 & 5

3, 2, 4, 5 & 1 to be 1, 2, 3, 4 & 5

3(a) 2(b) 4(c) 1 5 to be 1, 2(b), 3(a), 4(c) & 5

2 3-5 1 to be 1, 2 & 3-5

Commas between numbers and the '&' symbol should be added before the last number on the list while keeping the number in range together if present (like 3-5) just like the last example above.

Thank you.