Instruction: Rank the products A, B, C, ... based on their relevance to the provided query, and produce a ranked list with the most relevant product positioned at the top of the list.

Input:
Query: literary gifts
Product list:
A: Tequila Mockingbird: Cocktails with a Literary Twist
B: Pride and Prejudice Book Scarf
Answer: A,B