Okay, maybe not illegal, but unethical as hell.
And possibly unconstitutional as well. The whole line-up could be unduly suggestive and therefore a violation of the players due process rights.
Certainly Nifong if nothing is not unethical.