criteria.add("@modifieddate");
try {
DocumentSorter sorter = new DocumentSorter(coll, criteria);
// System.out.println("SORTING...");
long startTime = System.nanoTime();
DocumentCollection sortedColl = sorter.sort();
long endTime = System.nanoTime();
System.out.println("Completed resort in " + ((endTime - startTime) / 1000000) + "ms");
// System.out.println("SORTED");
for (Document doc : sortedColl) {
System.out.println(doc.getItemValueString("MainSortValue") + " " + doc.getLastModifiedDate().getTime() + " "