i don't think i've ever seen a cafe do that (unless you count mcdonald's as a cafe). even the starbuck's thing of using your name is rare, but others have picked it up
most cafes i've been in, the queue is usually short enough that the barista knows who ordered what. at peak times, they can't keep track of it, though, so the customers keep track themselves and it usually works well enough that nobody is going to optimize it
They usually have FIFO system anyway, so even if everyone was ordering the same thing, it wouldn't matter. I suppose a situation where you have multiple baristas and some work faster than others or some people have simpler orders might force customers to keep track though.
most cafes i've been in, the queue is usually short enough that the barista knows who ordered what. at peak times, they can't keep track of it, though, so the customers keep track themselves and it usually works well enough that nobody is going to optimize it