Line up TV sitcom, maybe (9)

I believe the answer is:
programme
'line' is the definition.
The definition and answer can be both related to thinking as well as being singular nouns.
Perhaps you can see a link between them that I don't see?
I don't understand how the rest of the clue works.
Can you help me to learn more?
(Other definitions for programme that I've seen before include "Schedule of proceedings" , "Menu of events" , "Scheduled plan" , "Curriculum" , "Radio or TV broadcast" .)