Prior to day of flight it is definitely status and then fare class. Connections only matter on day of flight.
On day of flight (airport standby) connecting passengers first then status then fare class. Hard to get official validation, but concierge has confirmed and I've seen multiple real world examples.