Sorting shapes into a carroll diagram