Solved the one where arguments for cmp were reversed