system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: How do airlines get your checked luggage on the right plane when there is a short layover?

I know they scan the barcode and that tells them what plane and stuff, but what is the process that happens that gets the bag from one plane to another, accurately and on time? 

And yes I know it’s not ALWAYS accurate. But it is very accurate.
gpt
They usually sort it at the departing gate. They know which luggage needs to be taken out first. That information is sent to arrive airport. They also compartmentalize the bags. Ie, belt, terminal 1, terminal 2, etc. So this way, its easy to put the bags in correct cart and take it to correct place.