Merge pull request #12262 from AdmiralCurtiss/last-state-order-refactor Core/State: Refactor logic for determining the relative age of existing savestates.