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: ladies pull on shorts elastic waist
Product list:
A: Chic Classic Collection Women's Petite Cotton Pull-On Pant with Elastic Waist, Destruction Blue Denim, 8P
B: Alfred Dunner Women's Around Elastic Waist Polyester Short Pull-On Style Pants, Tan, 12 Petite
Answer: B,A