title: Sorting an ArrayList of Hashmap<String,Object> by int value
body: <p>I've been searching a lot but I didn't find a suitable solution to my problem. Now I want to sort an <code>ArrayList&lt;Hashmap&lt;String, Object&gt;&gt;</code> according to an int value.</p>
  
  <pre><code>HashMap&lt;String, Object&gt;map = new HashMap&lt;String, Object&gt;();
  map.put("friend", "x");
  map.put("status", "yyoyo");
  map.put("time", "20:10");
  map.put("lat", 30.030535);
  map.put("lng", 31.506050);
  map.put("distance", 50); 
  statusMapList.add(map);
  </code></pre>
  
  <p>Now, this is a sample here. the <code>statusMapList</code> holds many Hashmaps like this, and I want to sort them according to the <code>distance</code> value, so is there any way to do this? Thanks a lot.</p>