Date date1 = ((History)o1).getDate(); Date date2 = ((History)o2).getDate();
Date date1 = homogenizeDate(((History)o1).getDate()); Date date2 = homogenizeDate(((History)o2).getDate());
  public int compare(Object o1, Object o2)  {    if (o1 instanceof History      && o2 instanceof History)    {      Date date1 = ((History)o1).getDate();      Date date2 = ((History)o2).getDate();            // We'll do this comparison "backwards", to get a descending sort.      return date2.compareTo(date1);    }        return 0;  }