Shape Sorting Caterpillar