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: funny halloween costumes
Product list:
A: Leg Avenue 2 Piece Creepy Clown Striped Dress Set-Scary Horror Movie Halloween Costume for Women, Multi, Medium/Large
B: Rubie's Inflatable Inflatable Hippo Adult Sized Costumes, As Shown, One Size US
Answer: B,A