It depends on your goals. If building strength is the priority, I’d do strength training first to maximize energy for lifting. If improving endurance or burning fat is the goal, cardio first can be effective.