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: beach flip flops
Product list:
A: Reef Women's Bliss Nights Sandals, Black, Size-9
B: Quiksilver Men's Molokai 3 Point FLIP Flop Sandal, Black/Black/White, 11 M US
Answer: A,B