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: the cowboy encyclopedia
Product list:
A: The Cowboy Encyclopedia: The Old and the New West from the Open Range to the Dude Ranch
B: The Horse Encyclopedia
Answer: A,B