fixed sorting of reconfig pairs