We recently got a new puppy. My older dog waits his turn and knows the puppy should go outside to the bathroom first.
It is pretty awesome!  I'm impressed that he knows he doesnt need to be first and the puppy should have priority.