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: swim trunks for men with pockets tan
Product list:
A: MaaMgic Mens Slim Fit Shorts Quick Dry Swim Trunks with Mesh Lining Male Bathing Suits,X-Large(Waist:34"-36"),Green
B: Lands' End Mens Quick Dry 9H Inch Cargo Short Tan Pebble Regular Medium
Answer: B,A