The order was supposed to be trainers and management pilots first followed by everybody else in order of join date (with some flexibilities built in). Instead it appears to have been random and no answers have been forthcoming as to why.
Based on the last known proposals (quantity/matrix) it is entirely possible that some people who are now back flying could be made redundant.