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: history of western philosophy russell
Product list:
A: An Outline of Philosophy (Routledge Classics)
B: History of Western Philosophy and Its Connection with Political and Social Circumstances From the Earliest Times to the Present Day
Answer: B,A