Several other issues would affect placement. Sometimes if the RPO was sorting a lot of mail, there might be baggage car(s) next to it. The baggage car(s) would hold mailbags to be, or was sorted.
Or you might have baggage cars with sealed mail, which went from one city to the next without being sorted at all en route. Express boxcars also were used in this roll. Railway Mail was more than RPO's.
If the train was a mail and express train, the RPO could be in the MIDDLE of the train.
If one wants to model this kind of railroading, one needs to model the time, place, train, and railroad the RPO would run on. Not all passenger trains had RPO's, and some had RPO's depending on the day of the week. Or the RPO would be added or dropped enroute.
Interesting modeling. Interesting study. Interesting operations.