Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

sort strings ending with numbers correctly

807607Nov 2 2006 — edited Nov 2 2006
Hi 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 30 2006
Added on Nov 2 2006
3 comments
424 views