system
Given the following post, respond as if you're commenting on Reddit:
human
Does your digestive system work like a queue, I.e. first in first out, or can food pass other food in your digestive tract?

If I ate corn Monday, peas Tuesday, and carrots Wednesday, would I poop corn, peas, and then carrots in that order? What if the peas were no good and got me sick, could my body poop them before the corn?
gpt
Almost. There can be mixing in the stomach, even over the course of a few hours. But after it moves to the small intestine, it's first in, first out.
So expect to get your dinner appetizer and dessert scrambled and mixed,  but breakfast is coming out before dinner.