@Override public int compare(RandSamRecord o1, RandSamRecord o2) { long i = (long) o1.rand_index - (long) o2.rand_index; if (i != 0L) return (i < 0 ? -1 : 1); return secondCompare.compare(o1.samRecord, o2.samRecord); }
@Override public int compare(final FastqRecordsForCluster r1, final FastqRecordsForCluster r2) { return SAMRecordQueryNameComparator.compareReadNames( r1.templateRecords[0].getReadHeader(), r2.templateRecords[0].getReadHeader()); }