The order of the docs shouldn't matter. But chatgpt has some issue with the answer refine prompt. It's supposed to repeat the previous answer if it can't improve the existing answer with the new context.
But, as you can see, chatgpt doesn't like to follow instructions π₯΄