if (inOriginalOrder) {
// Sort entries based on their creation order, utilizing the fact
// that IDs used for entries are increasing, sortable numbers.
List<Comparator<BibtexEntry>> comparators = new ArrayList<Comparator<BibtexEntry>>();
comparators.add(new CrossRefEntryComparator());
comparators.add(new IdComparator());
comparatorStack = new FieldComparatorStack<BibtexEntry>(comparators);
} else {
String pri, sec, ter;
boolean priD, secD, terD = false;