Make sort() use key= rather than cmp. All regression tests pass.