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: black bar foot rail
Product list:
A: Outwater Plastics Black 3/4'' Styrene Plastic U-Channel/C-Channel 36 Inch Lengths (Pack of 4)
B: Amazon Basics Solid Wood Saddle-Seat Kitchen Counter Barstool - Set of 2, 29-Inch Height, Black
C: Aluminum Handrail Direct OHR 4' Handrail Section with Mounts - Black - Stair Hand Rail - USA Made Railing- Easy to Install Handrails for Outdoor & Indoor Stairs, Porch & Deck Stair Hand Rail
D: Glideaway X-Support Bed Frame Support System, GS-3 XS Model - 3 Cross Rails and 3 Legs - Strong Center Support Base for Full, Queen and King Mattress, Box Springs, and Bed Foundations
Answer: C,D,A,B