CSPACE-6266: More resource ordering tweaks. Added and clarified comments.