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: womans sheriff woody costume
Product list:
A: Cowboy Costume Deluxe Set for Kids Halloween Party Dress Up,Role Play and Cosplay (3T) Brown
B: Toy Story Sheriff Woody Union Suit Costume Pajama (Adult Large)
C: Disguise Disney Pixar Gabby Toy Story 4 Deluxe Womens' Costume, Yellow, L (12-14)
D: Childrens Brown Felt Cowboy Hat by Century Novelty by Century, brown, Size Small
Answer: B,C,D,A