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: home security camera system
Product list:
A: Ring Alarm 5 Piece Kit (1st Gen)  Home Security System with optional 24/7 Professional Monitoring  No long-term contracts  Works with Alexa
B: XVIM 720P Outdoor Home Security Camera System - 8 Channel 1080N DVR 1TB Hard Drive 8 HD Bullet Surveillance Cameras with Night Vision and Motion Detection
Answer: A,B