Xaap will use the previous inspection order of the devices to define the initial Tour Order in the building.
If it is an inspection in a brand new building, you can set the tour order of the devices while you are performing the inspection, or you can just close the inspection and Xaap will infere the Tour from the order you have inspected the devices.
The video below shows how to Set and Sort devices by Tour Order in your inspection: