I want to implement my custom Comparator to sort a map of keys in this particular way:
1
2
3
4
4a
4b
5
6
11
12
12a
...
And I dont know how can do it exactly. I have impelemented this only for numeric values:
aaa = new TreeMap<String, ArrayList<ETrack>>(
    new Comparator<String>()
    {
      @Override
      public int compare(String s1, String s2)
      {
        return Integer.valueOf(s1).compareTo(Integer.valueOf(s2));
      }
    });
But this is not obiouslly the complete solution. Any idea?