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: magicians cape and hat for kids
Product list:
A: Funny Party Hats Magician Costume - 4 Pc Set, Magician Hat, Wand , Gloves & Bonus Cards - Magician Kit
B: Magician Plush Costume Top Hat with a Secret Pocket and Stuffed Toy Rabbit for boys and girls
Answer: B,A