... Vasilisa's magical doll summons ants and mice to help with the huge task of sorting the wheat grains and the poppy seeds, but in the Russian original, it's not explained how the doll managed to sort the seeds.
In one story in which various seeds were mixed up and needed to be separated, protagonist used wind to separate seeds.