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: girls size 12 nightgown
Product list:
A: Simple Joys by Carter's Girls' Little Kid 2-Pack Fleece Nightgowns, Sheep/Floral, 8-10
B: Hupohoi Big Girls' Short Sleeve Nightgown Lovely Cats Lazy Day Printed Sleep Dress PJS Navy
Answer: B,A