Magento Snippet: Use a Group By clause on a collection model

Here’s a Magento snippet showing how to use a Group By clause on a Magento collection model.