Instruction: Evaluate the relevance of each product title in the input to the given query, and then sort the products in descending order of relevance, placing the most relevant product at the top of the ranked list.

Input:
Query: livestock water float
Product list:
A: 2 Pieces 1/2 Inch Water Float Valve, Side Entry Water Float Valve Plastic Float Valve for Automatic Control of Water Level in Water Tank and Pool
B: Little Giant Trough-O-Matic Stock Water Tank Float Valve Controlled Watering Tank with Aluminum Housing and Expansion Brackets (Item No. TM830T)
Answer: B,A