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: dorothy wizard of oz
Product list:
A: Wizard of Oz Halloween Sensations Scarecrow Costume, Medium (75th Anniversary Edition)
B: Wizard Of Oz Secret Wishes Dorothy Costume, Blue And White, Adult Plus
Answer: B,A