static Comparator fileDateComparator() { ret new Comparator() { public int compare(File a, File b) { long xx = a.lastModified(), yy = b.lastModified(); return xx < yy ? -1 : xx == yy ? 0 : 1; } }; }