protected int compareTo(SchemaTuple<?> t, boolean checkType) { if (checkType && getClass() == t.getClass()) { return compareToSpecific((T)t); } int i = super.compareTo(t, false); if (i != 0) { return i; } if (appendedFieldsSize() > 0) { int m = schemaSize(); for (int k = 0; k < size() - schemaSize(); k++) { try { i = DataType.compare(getAppendedField(k), t.get(m++)); } catch (ExecException e) { throw new RuntimeException("Unable to get append value", e); } if (i != 0) { return i; } } } return 0; }