Groups items from a list by the value of a specific key.
Sorts a flat list of items into buckets based on a shared value. Use this to take a list of products and group them by category, so all products in the same category end up together. Each item that shares the same value is collected into its own group, and the groups are written to a location you choose. The original list stays in place.