Bug 1106784 - Restore loop order of background sweeping to hopefully fix Dromaeo regression r=terrence