; and (2) by adding at the end the following: (B) The Secretary shall consider petitions for nonimmigrant status under section 101(a)(15)(H)(i)(b) in the following order: (i) Petitions for nonimmigrants described in section 101(a)(15)(F) who, while physically present in the United States, have earned an advanced degree in a field of science, technology, engineering, or mathematics from a United States institution of higher education (as defined in section 101(a) of the Higher Education Act of 1965 ( 20 U.S.C. 1001(a) )) that has been accredited by an accrediting entity that is recognized by the Department of Education. (ii) Petitions certifying that the employer will be paying the nonimmigrant the median wage for skill level 4 in the occupational classification found in the most recent Occupational Employment Statistics survey. (iii) Petitions for nonimmigrants described in section 101(a)(15)(F) who are graduates of any other advanced degree program, undertaken while physically present in the United States, from an institution of higher education described in clause (i). (iv) Petitions certifying that the employer will be paying the nonimmigrant the median wage for skill level 3 in the occupational classification found in the most recent Occupational Employment Statistics survey. (v) Petitions for nonimmigrants described in section 101(a)(15)(F) who are graduates of a bachelor’s degree program, undertaken while physically present in the United States, in a field of science, technology, engineering, or mathematics from an institution of higher education described in clause (i). (vi) Petitions for nonimmigrants described in section 101(a)(15)(F) who are graduates of bachelor’s degree programs, undertaken while physically present in the United States, in any other fields from an institution of higher education described in clause (i). (vii) Petitions for aliens who will be working in occupations listed in Group I of the Department of Labor’s Schedule A of occupations in which the Secretary of Labor has determined