Step 1: Spot where grammar can break:
The word "sort" is simple, so any error will come from number (singular or plural) or from a fixed phrase. I check these two things in each sentence.
Step 2: Sentence (1), the singular case:
"What sort of cheese" has the pattern "what sort of" plus a noun, and the singular "sort" is right because the question asks about one kind. It is correct.
Step 3: Sentence (2), the number case:
"Of all sort" has a problem. The word "all" refers to every kind, which means several kinds, so the word needs the plural form "sorts". The sentence should read "Farmers of all sorts" or "All sorts of farmers". As printed, the number is wrong, so this is the incorrect usage.
Step 4: Sentence (3), the idiom case:
"Tea of a sort" is a real idiom. It says that what is served is a weak or poor version of tea. Used here about tea served on trains, it is natural. It is correct.
Step 5: Sentence (4), the verb case:
In "Let's sort these boys into four groups" the word is a verb, and "sort ... into" is a normal pair of words. It is correct.
Step 6: Conclusion:
We were asked for the incorrect sentence. Sentences (1), (3) and (4) pass both checks, so only sentence (2) remains.
Final Answer:
The error in sentence (2) is "sort" where "sorts" is needed after "of all". The answer is option 2.
\[ \boxed{\text{Option 2}} \]