Reverse history while saving (so it is restored in the correct order)