Generally
Employees (with different position depending on their passes)
Parents
Buddy passes
Alliances (Oneworld, skyteam, Star etc)
ZED
ID90
If you are a pilot and have access to the jump seat I assume it can be different.
Some cies go by seniority to sort the people withiin the same category in the priority list some others it is first come first serve