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: flat iron for hair
Product list:
A: CHI Spin N Curl Special Edition Rose Gold Hair Curler 1". Ideal for Shoulder-Length Hair between 6-16 inches.
B: Ywoow Professional Curler Tourmaline Mini Ceramic Hair Straightener Flat LCD Mini Hair Straightener
Answer: B,A