Instruction: Given a query and a list of products denoted as A, B, C, ... with their titles, rank the products according to their relevance to the query. Output only a ranked list in which the most relevant product is at the top of the list.

Input:
Query: upholstery buttons
Product list:
A: Set of 12 Wire Eye Back Upholstery Buttons Black Vinyl (#30-3/4" Diameter)
B: Set Of 12 Dura Snap Upholstery Buttons #30 Black Vinyl
C: 50 Buttons to Cover - Made in USA - Self Cover Buttons with Wire Eyes - Size 45 with Tool
Answer: A,B,C