Title: Sorting and mapping with shapes