KISS

Do NOT try to reinvent the wheel! If the problem in hand is to
just output is the top most of a list, just sort and trim!