Instruction: Evaluate the relevance of each product title in the input to the given query, and then sort the products in descending order of relevance, placing the most relevant product at the top of the ranked list.

Input:
Query: wool bucket hat
Product list:
A: Lacoste Mens Rib Knitted Contrast Beanie , Navy Blue/Navy Blue, One Size
B: squaregarden Bucket Hats for Men Women, Woolen Outdoor Fishing Hunting Hat Sun Cap, Black
Answer: B,A