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: security baseball hat with badge
Product list:
A: Security Hat Baseball Cap
B: Custom Snapback Baseball Cap Security Badge Embroidery Design Acrylic Cap Snaps Purple Personalized Text Here
Answer: B,A