The Presidential Succession Act of 1947 restored the speaker of the House and president pro tempore of the Senate to the line of succession—but in reverse-order from their 1792 positions—and placed them ahead of the members of the Cabinet
Hope that helped!!