Weights or cardio first?

Please settle this debate between a friend of mine. I think it's better to do weights before doing cardio but my friend thinks the opposite.it might not matter a whole lot but I'm just curious which has the slight advantage
Weights or cardio first?
Post Opinion