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: thomas the train toys
Product list:
A: Thomas & Friends Wood, Thomas
B: Jay Franco Thomas & Friends Plush Stuffed Toddler Pillow Buddy-Kids Super Soft Polyester Microfiber, 15 inch (Official Mattel Product), Thomas
Answer: A,B