I have a problem with sorting strings which include integers. If I use the below code I get sorting like: 1some, 2some, 20some, 21some, 3some, some
However I want it
If you have alphanumeric string array you can directly sort it by using
Arrays.sort(Array_name)
and then to print:
for(String a : Array_name) System.out.print(a);