Hack a sort method in place