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: new era snapback
Product list:
A: New Era 9Fifty MLB New York Yankees Green Camo Basic Snapback Hat 11941920 One Size
B: New Era NBA Golden State Warriors Men's 9Fifty Snapback Cap, One Size, Black
Answer: B,A