@Override
		public int compare(DBRecord rec1, DBRecord rec2) {
			int r = rec1.getField(columnIx).compareTo(rec2.getField(columnIx));
			if (r == 0) {
				if (rec1.getKey() == rec2.getKey()) {
					return 0;
				}
				else if (rec1.getKey() < rec2.getKey()) {
					return -1;
				}
				return 1;
			}
			return r;
		}
@see java.util.Comparator#compare(java.lang.Object, java.lang.Object)
Ghidra/Framework/DB/src/test/java/db/DBIndexedTableTest.java