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: Childrens Brown Felt Cowboy Hat by Century Novelty by Century, brown, Size Small
B: Disguise Disney Pixar Gabby Toy Story 4 Deluxe Womens' Costume, Yellow, L (12-14)
Answer: B,A