Instruction: Evaluate each product title in the given list, assess its relevance to the given query, and then arrange the products in descending order of relevance, with the most relevant product at the top of the ranked list.

Input:
Query: rainbird rotary head
Product list:
A: Rain Bird Rotor Heads 5000 Rotor Sprinkler Heads. 4-Pack
B: Rainbird R-VAN24-17-24 ft. Adjustable Rotary Nozzles (45 to 270 Degree) (3pcs in a Bag)
Answer: A,B