protected int compareDocuments(Document document1, Document document2) { return document1.getArchivedDatetime().compareTo(document2.getArchivedDatetime()); }
protected int compareDocuments(Document document1, Document document2) { return document1 .getPublicationEndDatetime() .compareTo(document2.getPublicationEndDatetime()); }
protected int compareDocuments(Document d1, Document d2) { return d1.getHeadline().compareToIgnoreCase(d2.getHeadline()); }
protected int compareDocuments(Document d1, Document d2) { return d1.getModifiedDatetime().compareTo(d2.getModifiedDatetime()); }
protected int compareDocuments(Document d1, Document d2) { return d1.getId() - d2.getId(); }