Title: Match and Sort Shapes