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: petite hats for women
Product list:
A: Sunday Afternoons Cruiser Hat, Tan/Chaparral, Large
B: Pineapple&Star Sun Straw Fedora Beach Hat Fine Braid UPF50+ for Unisex (Small, Brown)
Answer: A,B