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: womans sheriff woody costume
Product list:
A: Cowboy Costume Deluxe Set for Kids Halloween Party Dress Up,Role Play and Cosplay (3T) Brown
B: Disguise Disney Pixar Gabby Toy Story 4 Deluxe Womens' Costume, Yellow, L (12-14)
Answer: B,A