Reinforced Context Order Recovery for Adaptive Reasoning and Planning