According to the law, if the units are of comparable housing, the last person who moved in would be the first person forced to leave. That regulation is meant to protect low-paying tenants from being targeted.
Source: Los Angeles Times May 26, 2019 20:37 UTC