Title: Sorting and matching shapes