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: nike shorts men with pockets
Product list:
A: Nike Men's Team Fly Dri-FIT Shorts (Royal/Matte Silver, X-Large)
B: Nike Dri-FIT Icon, Men's Basketball Shorts, Athletic Shorts with Side Pockets, Black/Black/White, XL
Answer: B,A