s4/dsdb/pytest/sort: use compat.cmp_fn instead of cmp