public int CompareTo(TransactionalResourceVersion other) { var result = TransactionId.CompareTo(other.TransactionId); if (result == 0) { result = WriteNumber.CompareTo(other.WriteNumber); } return(result); }
public int CompareTo(TransactionOutput other) { if (other == null) { return(1); } var comp = TransactionId.CompareTo(other.TransactionId); return(comp != 0 ? comp : OutIndex - other.OutIndex); }
public int CompareTo(CachedTransaction other) { if (other == null) { return(-1); } // IMPORTANT: The key fields here must for a unique sortable key for the entity. // Therefore if the transaction dates are equal we use the TransactionCode to break the tie. var result = DateTime.Compare(TransactionDate, other.TransactionDate); return(result != 0 ? result : TransactionId.CompareTo(other.TransactionId)); }
public int CompareTo(ITransaction other) { return(TransactionId.CompareTo(other.TransactionId)); }