compareTo method

int compareTo(
  1. List<MoneyTransaction> other
)

Returns the comparison to other list of MoneyTransaction.

Implementation

int compareTo(List<MoneyTransaction> other) {
  sort();
  other.sort();

  return last.compareTo(other.last);
}