Instruction: Analyze the query and each product title. Sort the products in descending order based on their relevance to the query. The most relevant product should be at the top of the list, and output the ranked list.

Input:
Query: revenge of the nerds costume
Product list:
A: Impact Nerd Bow Tie Suspenders Glasses Cool Costume T-Shirt X-Large
B: Revenge of the Nerds Nerd Costume Mens Sublimation Shirt White XL
Answer: B,A