To correctly sequence the given sentences into a logical paragraph, we need to understand the context and relationship between each sentence.
Therefore, the correct logical sequence of the sentences is: 1, 4, 5, 3, 2.
Step 1: Starting Point
Sentence (1) begins with “But when it comes...”, which clearly sets up the issue of shortage of programmers. Hence, it must come first.
Step 2: Clarification
Sentence (4) follows naturally: “This is less inconsistent than it may seem.” This explains why the government acts differently for programmers vs. others.
Step 3: Logical Support
Sentence (5) provides the justification: coders take several years to train compared to HGV drivers. So, (5) directly supports (4).
Step 4: Effect on Startups
Sentence (3) then explains: demand for coders has soared among startups, which connects to (5).
Step 5: Consequence
Finally, sentence (2) concludes: limited access to foreign talent becomes a common gripe.
Final Sequence:
\[ \boxed{1 \;\; \rightarrow \;\; 4 \;\; \rightarrow \;\; 5 \;\; \rightarrow \;\; 3 \;\; \rightarrow \;\; 2} \]