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: scarlet and ivy book 3
Product list:
A: A Million Worlds with You (Firebird)
B: Scarlet and Ivy (3 Book Series)
Answer: B,A