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: brown stocking hat
Product list:
A: Carhartt Men's Odessa Cap,Brown,One Size
B: Zando Baby Kids Cotton Knit Beanie Hat for Baby Boys Newborn Lovely Cap Toddler Infant Soft Cute Hat Cap Black & Grey & Coffe Small
Answer: B,A