Best layoff I ever went through was when my boss came to our team and said, "look, don't tell anyone, but we have a layoff coming in a few days. I have to let one of the three of you go. Do you want me to decide or do you want to decide amongst yourselves?". She knew we were good friends outside of work and would probably make a better choice than her.
I ended up volunteering because one other guy had just bought a house and had a baby and the other guy had debts to pay off and I didn't. Ended up working with both those guys again. One of them ended up leaving and getting a new job, then he pulled me in after 1.5 years of unemployment, and then we pulled the last guy in after he eventually got let go.