Could be `.sort(Utils.cmp)` and leave out the custom `cmp` function entirely.