Now a snapshot is generated in the following was: firstly all spaces with id < 512, ordered by ID, then all other spaces in unspecified order. Let's specify the order and place all spaces in order of their IDs.