We are talking about a Melbourne Perth flight here, so the upgrade category for all current staff is J18, after which length of service is the determining factor.
So for a Domestic flight, the Captain with 40 years service, provided all listed staff are onloaded, will always get a business seat in front of the exec who has only been in the company for a year!