sortById method

int sortById(
  1. Equation a,
  2. Equation b
)

Implementation

int sortById(Equation a, Equation b) {
  return b.id - a.id;
}