how to sort the list<Date, String> in Java according to Date
<p>I have some table names coming as i/p param to my method. I need to get the creationDate (date), count for each table and put it in a consolidated List)</p>

<p>and then Sort the list according to the creationDate.</p>

<p>Here is the Method:</p>

<pre><code>public String getData(List tablename){
    Lifecycle.beginCall();
    EntityManager mgr = (EntityManager) Component.getInstance("entityManager");
    List data = new ArrayList();
    if (!tablename.isEmpty())
    {
        Iterator itr = tablename.iterator();
        while(itr.hasNext())
        {
            String element = itr.next().toString();
            Query q = mgr.createQuery("select to_date(s.creationDate), count(s)" +
                                      " from " + element + " s" +
                                      " group by to_date(creationDate)" +
                                      " order by to_date(creationDate)");
            List dataTemp = q.getResultList();

            data.addAll(dataTemp);

        }
    }
}
</code></pre>

<p>Now I have List data, e.g.:</p>

<pre><code>({["Jan 3, 2013 12:00:00 AM",10],
  ["Feb 3, 2013 12:00:00 AM",10],
  ["Jan 1, 2013 12:00:00 AM",10],
  ..........})
</code></pre>

<p>Challenge here is i want this List to be sorted according to the date</p>
