Instruction: Evaluate the relevance of each product title in the input to the given query, and then sort the products in descending order of relevance, placing the most relevant product at the top of the ranked list.

Input:
Query: newborn baby gifts
Product list:
A: Baby Handprint Footprint Keepsake Kit - Baby Prints Photo Frame for Newborn - Baby Nursery Memory Art Kit Frames - Baby Shower Picture Frames for Baby Registry Boys,Girls (Alpine White)
B: Baby Gift Set  Keepsake Box in Pink with Baby Clothes, Teddy Bear and Gifts for a Baby Girl
Answer: B,A