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: casual pants and shorts
Product list:
A: Haggar Men's Cool 18 Pro Straight Fit Pleat Front 4-Way Stretch Expandable Waist Short with Big & Tall Sizes, Black, 40
B: Columbia Women's Misses Anytime Casual Pull On Pant, Dark Nocturnal, Medium
Answer: A,B