Group By Specific Column within a Collection

Please share what you tried so far. This way we avoid losing time working on a solution you already know it is not working. This could also save us by simply adapting or improving on a partially working solution.

Please share the sample result you would like.

The above requirement is not clear enough to propose anything meaningful.