@Override
	public int compareTo(Register other) {
		int result;
		if (getBaseRegister().equals(other.getBaseRegister())) {
			result = leastSigBitInBaseRegister - other.leastSigBitInBaseRegister;
		}
		else {
			result = address.compareTo(other.address);
		}
		if (result == 0) {
			result = bitLength - other.bitLength;
		}
		return result;
	}
@see java.lang.Comparable#compareTo(java.lang.Object)
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/lang/Register.java