pardon my english.
with this code,
Collections.sort(mEntries, new Comparator<ZipEntry>() {
public int compare(ZipEntry a, ZipEntry b) {
return a.getName().compareTo(b.getName());
}
});
when there are strings like this: hello1,hello3,hello2,hello11,hello10
it will be sorted into this: hello1,hello10,hello11,hello2,hello3
the result i want is this:
hello1,hello2,hello3,hello10,hello11
but when there are strings with the same number digits like this, it can properly sort it.
from this: hello01,hello03,hello02,hello11,hello10.
into this: hello01,hello02,hello03,hello10,hello11
any idea how can i achieve the result i want?
hello1,hello2,hello3,hello10,hello11
thank you.