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: 1/8 inch grosgrain ribbon
Product list:
A: Creative Ideas Solid 3/8-Inch Grosgrain Ribbon, 50-Yard, Black
B: Morex Ribbon 066 Grosgrain Ribbon, 1/8 Inch by 50 Yards, Wlhite
Answer: B,A