The attendants are very observant as are dining car staff so folks ticketed in sleepers are recognized by those folks. Sleeper car passengers board into their car at the front of the train and coach is loaded by destination. As I recall it's sleepers, dining car, observation car, coach cars...