An employee does not have an automatic right to be rehired by their employer after a layoff. That is, unless they have some sort of agreement that provides otherwise (a union or employment contract, etc.). Otherwise, absent some form of actionable discrimination, a company can hire and/or rehire as it sees fit.