Corrected group documentation
Group primitives were incorrectly sorted

When defining a group, order of primitives is important as it defines start/stop order of your primitives. Sorting the primitives array caused primitives to be grouped in an undesired order, resulting in unwanted behaviour.
Merge branches 'dup-operations' and 'template-override', remote branches 'kbon/self.ready-performance' and 'kbon/master'