title: Sorting ArrayList of HashMap based on key value
body: <p>I have a list of HashMaps. Each HashMap consists of several kay-value pairs and everything comes as a string. I am storing all the hashmaps inside an arraylist. Now I need to sort the arraylist based on the key inside the hashmap. </p>
  
  <p>Here is my sample data:</p>
  
  <pre><code>{
   "productID":"5643",
   "productName":"Apple - iPod touch",
   "outsidePrice":"189.99", 
   "merchantID":"134439",
   "ourPrice":"184.99", 
   "storeName":"Ebay",
  }
  
  
  {
   "productID":"3243",
   "productName":"Apple - iPad",
   "outsidePrice":"389.99", 
   "merchantID":"54439",
   "ourPrice":"384.99", 
   "storeName":"Apple",
  }
  </code></pre>
  
  <p>I am storing this data inside this structure.</p>
  
  <pre><code>ArrayList&lt;HashMap&lt;String, String&gt;&gt; data_list = new ArrayList&lt;HashMap&lt;String, String&gt;&gt;();
  </code></pre>
  
  <p>I have a huge list of items like this. Now I need to sort the arraylist based on the productName, Price, storeName, productID fields inside the hashmap.</p>