When making a layout for farming, it is ideal to have the different crop types in sections of multiples of threes. That way you can harvest the top third and use the lower two thirds for processing or fodders. The except for this is tea and pumpkins.
When sorting pumpkins, slice the pumpkins, then scroll the seeds into a seed bag before putting the seed bag into one small container and the flesh in a bigger storage such as a large chest. Doing this allows you to sort pumpkins by seed bags. This can also be done with poppies and tea leaves but more for filtering the seeds in the bag and putting the byproduct in another container rather than sorting by seedbags.