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: ted nasmith
Product list:
A: The Silmarillion Poster Collection: Six Paintings by Ted Nasmith
B: The Art of The Lord of the Rings by J.R.R. Tolkien
Answer: A,B