Each of these geometric shapes has a different number of sides. Arrange the shapes in order from the shape with the greatest number of sides to the shape with the fewest number of sides.
1. triangle
2. square
3. rectangle
4. octagon
5. hexagon
6. pentagon