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: girls boy shorts swim bottoms
Product list:
A: MiYang Women's Solid Black Beach Pant Bikini Bottom Adjustable Tie Boy Short L (Waist 30.5"-33.5")
B: Capezio girls Boys Cut Low Rise Short, Royal, Small (4-6)
Answer: B,A