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: perms acid color treated hair
Product list:
A: BOTANIC HEARTH Biotin Shampoo and Conditioner Set - with Ginger Oil & Keratin for Hair Loss and Thinning Hair - Fights Hair Loss, Sulfate Free, for Men and Women, (Packaging May Vary),16 fl oz each
B: ZOTOS Salon Acclaim Plus Extra Body Acid Perm Normal Fine Hair HP-40721 (2 Pack)
Answer: B,A