The order of exercises in your workout does matter, especially for members of the tactical professions who need to be good at all elements of fitness.
Depending on their fitness needs and the physical demands of their profession, they should consider putting whatever skill they wish to improve the most first in their program each day. If they are running and swimming while adding calisthenics and lifting to a workout day, they may want to warm up and start the training with running or swimming and calisthenics before lifting. However, the answer to whether there is an optimal order for performance and recovery between sessions is either “yes” or “it depends.” If the preferred schedule of workouts is just not possible, it is recommended to actually make the test a workout day so they can perform the order of the fitness test and focus on weaknesses. Consider adopting a training program that offers a period of time that focuses on all elements of fitness spread throughout the year, such as the Seasonal Tactical Fitness Periodization model.
Source: https://www.military.com/military-fitness/does-order-of-exercises-your-workout-matter