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: hooey hats for men
Product list:
A: HOOEY Habitat Flexfit Style Hat (Gray/White, L/XL)
B: HOOEY Liberty Roper Trucker Cap Black/Black
Answer: B,A