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: fairy tales hair products
Product list:
A: Bar5F Pump for Shampoo Conditioner Lotion, White, 2 Count (Pack of 1)
B: Fairy Tales Swimmer Conditioner for Kids - 32 oz | Made with Natural Ingredients in the USA | Replenish and Restore from Chlorine and Salt Damage | No Parabens, Sulfates, or Synthetic dyes
Answer: B,A