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: a writers reference 9th edition by diana hacker
Product list:
A: Rules for Writers 9e & Documenting Sources in APA Style: 2020 Update
B: A Writer's Reference 9e and Developmental Exercises for Hacker Handbooks
Answer: B,A