Extremes of generalized inversions on permutation groups