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: shelves for nursery
Product list:
A: BAYKA Floating Shelves Wall Shelf Mounted, Decorative Rustic Wood Hanging Shelving Set of 3 for Bedroom, Kitchen, Bathroom, Living Room, Weight Bearing Shelves for Cats, Pictures, Towels, Accessories
B: Wallniture Utah Set of 2 Nursery Room Wood Floating Wall Shelves White
Answer: B,A