sort strings ending with numbers correctly
807607Nov 2 2006 — edited Nov 2 2006Hi All
How to do this in java
For following Strings
ABC1
ABC3
ABC2
ABC21
ABC12
If u sort using string u will end with.
ABC1
ABC12
ABC2
ABC21
ABC3
But I'm expecting, must be sorted like this
ABC1
ABC2
ABC3
ABC12
ABC21
Is there any JAVA api's to do this?
Hope some one can help on this.
Regards
Bala