There really is no definitive answer on this. It depends on what your main goal is; training for an endurance event? looking to build muscle? etc. You should prioritize what is most important; if you want to work on aerobic conditioning that should go first, strength; then the weights should be first. There are also individual preferences; some people feel better lifting when their muscles are thoroughly warmed after the cardio.