Instruction: Evaluate the relevance of each product title in the input to the given query, and then sort the products in descending order of relevance, placing the most relevant product at the top of the ranked list.

Input:
Query: elegant women dresses yellow
Product list:
A: GRACE KARIN Women's Pants Trouser Slim Casual Cropped Paper Bag Waist Pants Yellow S
B: PRETTYGARDEN Women's Basic Crewneck Belted Office Dress Solid Color Short Sleeve Party Slim Dress Blue
Answer: B,A