Sort plugin after they are grouped by