(#22205) Re-introduce old ordering as a Prioritizer

This creates an old prioritizer for resources as it existed in commit
f51e967b73ff0154801f514aff40ca524bdd8ab1.