Instruction: Rank the products A, B, C, ... based on their relevance to the provided query, and produce a ranked list with the most relevant product positioned at the top of the list.

Input:
Query: boys character ties
Product list:
A: Harry Potter Character Wands Designs Juniors/Womens 5 Pack Ankle Socks
B: Steven Harris Men's Multicolor 8th Notes Necktie One Size Black
C: Religious Gifts First Communion Gift for Boys Gold Tie Bar Clip Clothing Accessory, Host in Chalice Small, 1 1/4 Inch
D: US Toy Boys aged 3+ Sequin Bowtie Red
Answer: D,B,C,A