If you do weightlifting before cardio, you may have less energy for cardio.
Doing cardio after weightlifting may help you burn more fat.
Doing cardio before weightlifting may help you warm up and prevent injury.
Ultimately, the best order for you depends on your goals and preferences.