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: white and pink leggings carters
Product list:
A: Amazon Essentials Girl's 3-Pack Capri Legging, Flower/Pink/White 3T
B: Carter's Girls' Toddler Single Legging, Print, 4T
Answer: B,A