In my opinion you should byt flat AD marks and armor seals first. Then magic resistance glyphs. Then everything else you deem worth.
Armor because overall are useful for any class ( from junglers to mages, to mitigate monster damage and mitigate minion aggro and jungler ganks ) and flat AD because it' s a core for many junglers, that rely A LOT on runes, it' s good for any laner because lets them last hit better ( and also harrass with the auto attack the enemy, don' t forget that ) and makes your supports more of a threat.
This just to say what i deem the most important ones, then there is a way to optimize everything. like, you would like to have magic penetration marks for your mages ( most of the times), or AP glyphs, or attack speed marks for your udyr jungle. I do not even mention Quintessences because those are another matter totally.