This is where I would have used a ternary: `return reverse ? -1 : 1;`