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: work decoration
Product list:
A: Kasa Smart HS100 WiFi Smart Plug, Classic 1-Pack, White
B: Elegant Pie: Transform Your Favorite Pies into Works of Art
Answer: B,A