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: workout hat
Product list:
A: Headsweats Performance Race Running/Outdoor Sports Hat, Black, One Size Fits All
B: NIKE AeroBill Featherlight Cap, Black/Black/White, One Size
Answer: A,B