1 /* 2 * Created on 2003-jun-12 3 */ 4 package net.sourceforge.jsh3modtool.gui.imagetable.cellsorters; 5 6 /*** 7 * A cell sorter that sorts the date of the cells. 8 * 9 * @author erma 10 */ 11 public class DateCellSorter extends AbstractCellSorter 12 { 13 /*** {@inheritDoc} */ 14 public int compare(Object o1, Object o2) 15 { 16 int value = 0; 17 /* long time1 = getFileLastModified(o1); 18 long time2 = getFileLastModified(o2); 19 20 if ( time1 > time2 ) 21 { 22 value = 1; 23 } 24 else if ( time2 > time1 ) 25 { 26 value = -1; 27 }*/ 28 return value; 29 } 30 }