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: loft bed twin stairs
Product list:
A: DHP Junior Loft Bed Frame with Ladder, Black
B: DHP Junior Twin Metal Loft Bed with Storage Steps, Multifunctional Space-Saving Solution - Black with Blue Steps
Answer: B,A