Sorting, Grouping, and Planting