Distinguishing permutation isomorphism classes of groups