It's legal because it is your option to get in line first so you get your choice of jobs or simply accept whatever jobs are left after they have been picked over. As long as the jobs aren't doled out based on some illegal discrimination there is nothing wrong with their methods.

