Both approaches would be correct depending on your needs and goals. If you want to cut, and you are not really focused on mass gains, then the cardio before working out is better. If the mass is the priority for you, then after working out the cardio session will be better.
Personally, I do those on separate days - in any case I have to workout EOD, so I have those free days. This way I can give my all on both workouts, and cardio sessions. If you combine them, you will inevitable affect either the cardio session, or the weight lifting.