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: historical fiction books
Product list:
A: Flight of the Sparrow: A Novel of Early America
B: The Tuscan Secret: An absolutely gripping, emotional, World War 2 historical novel
Answer: A,B