Enhance resource loading order to avoid relying on file names.