Fix order in groups setting