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: red dresses party elegant
Product list:
A: Women's V-Neck Sequin Dress Patchwork Evening Party Maxi Dress Burgundy US12
B: Aphratti Women's A Line Cute Cocktail Party Short Sleeve Scalloped Skater Dress Large Red
C: Red Flower Girls Dresses for Wedding Bridal Gold Sequin Tulle Tutu Dress Party Princess Pageant Ball Gown Size 5 5T A Line Backless Birthday Elegant Gowns Age 5 Red 120
Answer: B,A,C