Better snippet group sort