I have an array of strings. The strings are a combo of numerics and alphas.
Example strings:
ASM100 ASM112 R1000 R1009 R1018 R1027 R237 R247 R250 R500 R501 R600 R801 R803 R820 R821 R822 R823 R900 R901 R902 R903 R909 R910 R911 R912
Using a simple bubble sort yields the results shown above. What I need is for the sort to exclude the characters and sort using only the numeric portion. That is, R1000, R1009, R1018, R1027 should be at the end of the sort instead of the beginning. Is there a simple method for obtaining this type of sort without stripping the alpha portion from string, converting to integer, then adding the character portion back? Thanks
Example strings:
ASM100 ASM112 R1000 R1009 R1018 R1027 R237 R247 R250 R500 R501 R600 R801 R803 R820 R821 R822 R823 R900 R901 R902 R903 R909 R910 R911 R912
Using a simple bubble sort yields the results shown above. What I need is for the sort to exclude the characters and sort using only the numeric portion. That is, R1000, R1009, R1018, R1027 should be at the end of the sort instead of the beginning. Is there a simple method for obtaining this type of sort without stripping the alpha portion from string, converting to integer, then adding the character portion back? Thanks