Fixed group primitives unwanted sorting

Group primitives were sorted when set. This caused issues because the order of primitives in a group is important for starting/stopping them.