Affinity diagramming has long been used in business to organize large sets of ideas into clusters. In UX, the method is used to organize research findings or to sort design ideas in ideation workshops.
The main goal of Card Sorting is to improve a website’s or an application’s Information Architecture, to help designing how the information is organized and labelled.