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: cowboy hat black
Product list:
A: UwantC Mens Faux Felt Western Cowboy Hat Fedora Outdoor Wide Brim Hat with Strap Black
B: Aeromax Junior Cowboy Hat with Bandanna, Black
Answer: A,B