In my very unscientific tests, riding a 12hr before a 24hr is about 20mi better than doing it the other way around, even with ~3wks in between. It all depends on how deep you go, if you pick up an injury and your motivation for doing well in the second event. I did three 100s in three weeks and went faster at each one so providing you don't ruin your pacing you should be ok. The 12 should feel much easier at the start.
The Newbury conditions were probably 10mi better than the Nationals at ECCA that year but there was definitely still an aspect of fatigue. I went out much harder in the Newbury and hung on pretty well whereas I was running on fumes (mental and physical) at the Nationals.
In my very unscientific tests, riding a 12hr before a 24hr is about 20mi better than doing it the other way around, even with ~3wks in between. It all depends on how deep you go, if you pick up an injury and your motivation for doing well in the second event. I did three 100s in three weeks and went faster at each one so providing you don't ruin your pacing you should be ok. The 12 should feel much easier at the start.