Instruction: Analyze the query and each product title. Sort the products in descending order based on their relevance to the query. The most relevant product should be at the top of the list, and output the ranked list.

Input:
Query: mens gym shorts
Product list:
A: Amazon Brand - Goodthreads Men's Slim-Fit Short-Sleeve Crewneck Cotton T-Shirt, Fatigue Large Tall
B: Champion Men's Core Training Short, Black, XX-Large
Answer: B,A