No matter what your goals are, even if your only goal is to be huge, you still need to do some form of aerobic exercise. Besides just burning calories—Cardio, aka aerobic training, makes your heart strong increases your lung capacity, reduces the risk of a heart attack, high cholesterol, high blood pressure, diabetes, and some forms of cancer. The bottom line is your fitness routine is incomplete without cardio.
If your goal is to improve cardiovascular endurance, then cardio comes first. But if your goal is to increase strength or muscle mass then push cardio to the end of your workout.
A good cardio session is going to seriously deplete your muscle stamina. Lifting weights require muscle strength, so you want to do that first in your weight training session followed by cardio training. You can do an hour of weight training, followed by 20 minutes of cardio, with relatively strong energy levels. But the other way around, i.e. doing cardio first, will deplete your muscle energy which will impact your lifts negatively. Of course, there may be times when you want to switch things up but generally, you should do cardio after your weight training session.