How to Group-By a Column with Multiple Values

Just what I needed for a while but didn’t bother investigating with code, for instance you have a list with columns:
Title ¦ Categories
Basketball ¦ France ; UK
Football ¦ France
Swimming ¦ UK
How to show a view grouped by like :
France ¦ Basketball; Football
UK ¦ Basketball; Swimming

SharePoint – Group By a Column with Multiple Values | EndUserSharePoint.com