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: work uniform pants
Product list:
A: Chef Works Women's Cargo Chef Pants, Black, Medium
B: CQR CLSX Men's Tactical Pants, Water Repellent Ripstop Cargo Pants, Lightweight EDC Hiking Work Pants, Outdoor Apparel, Duratex Ripstop Black, 34W x 30L
C: Nautica Juniors Uniform Stretch Jegging Pant, khaki, 15
D: Chef Works Women's Essential Baggy Chef Pants, Black, Medium
Answer: D,B,A,C