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: magnetic earring
Product list:
A: 3 Pairs Clip On Earrings Big Hoop Earrings Set Non Piercing Earrings for Women Girls Gold Plated Rose gold Silver Hypoallergenic Hoop earrings (40mm-1.57)
B: RIOSO Magnetic Stud Earrings for Men Women Stainless Steel Hoop Cross Non Piercing Fake Gauges Earring Black CZ Hypoallergenic Magnet Earring Set
Answer: B,A