public int CompareTo(PaymentReportEntry other) { var result = string.Compare(Details, other.Details, StringComparison.Ordinal); if (result == 0) { result = TransactionDate.CompareTo(other.TransactionDate); } return(result); }
public int CompareTo(object obj) { return(TransactionDate.CompareTo(((Transaction)obj).TransactionDate)); }