Instruction: Analyze the query and each product title. Sort the products in descending order based on their relevance to the query. The most relevant product should be at the top of the list, and output the ranked list.

Input:
Query: yarn purple and grey
Product list:
A: Red Heart E300-546 Red Heart Super Saver Yarn - Purple Tone
B: RED HEART  Super Saver Yarn, Light Grey
C: Bernat 166031-31412 Softee Baby Yarn - Ombres - Pink Flannel
Answer: B,A,C