Instruction: Analyze the query and each product title. Sort the products in descending order based on their relevance to the query. The most relevant product should be at the top of the list, and output the ranked list.

Input:
Query: oak headboard
Product list:
A: Safavieh Home Collection Tufted Linen Rustic Oak and Beige Headboard (Queen)
B: Rosevera Gustavo Upholstered Collection Fabric Nailhead Contemporary Tufted Headboard for Bed, King, Beige
Answer: A,B