this.dirName = dirName;
}
public int compare(NameClassPair p1, NameClassPair p2) {
CacheEntry ce1 = resources.lookupCache(
dirName + p1.getName());
Date date1 = ce1.attributes.getCreationOrLastModifiedDate();
CacheEntry ce2 = resources.lookupCache(
dirName + p2.getName());
Date date2 = ce2.attributes.getCreationOrLastModifiedDate();
if (date1.before(date2)) {
return -1;
} else if (date1.after(date2)) {