Instruction: Evaluate each product title in the given list, assess its relevance to the given query, and then arrange the products in descending order of relevance, with the most relevant product at the top of the ranked list.

Input:
Query: vampire top hat headband
Product list:
A: Tall Black Satin Finish Top Hat - Deluxe Formal Tuxedo High Crown Top Hat - Dress Up Accessory for Roaring 20s Party, Magician, Circus Ringmaster, Steampunk & Victorian Era Costume Accessory, One Size
B: Forum Novelties Women's Costume Black Lace Mini Hat, Red/Black, One Size
Answer: B,A