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: los angeles rams hat
Product list:
A: New Era NFL The League 9FORTY Adjustable Cap - Los Angeles Rams White/Navy One Size Fits All
B: OTS NFL Los Angeles Rams Men's Rival Tee, Team Color Legacy Logo, Small
Answer: A,B