proper ordering of transaction selection in ota restore