This sounds to me as if you want to perform a "natural sort" on your data. The usual idea is to either pad out the numbers in your text to a fixed maximum size or to compare the numbers numerically. There have been lots of nodes on this so I won't write any code but will point you to the resources available on the topic:
In reply to Re: Sort problems
by Corion
in thread Sort problems
by erez_ez
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |