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: the second world war pacific theater map
Product list:
A: The Allied Defense of the Malay Barrier, 1941-1942
B: The Last Stand of the Tin Can Sailors: The Extraordinary World War II Story of the U.S. Navy's Finest Hour
Answer: B,A