For elite members of an airline frequent flyer program, complimentary upgrades are granted in the order of top status to lowest status.
Other factors that are considered in the upgrade process are fare class, time of the upgrade request, time of check-in, whether the ticket is an award ticket or a paid ticket, and if an earned upgrade certificate is being used.
An airline may use any combination of these factors.