Skip to main content
C# / .NET Code Reorder Hard +35 XP

LINQ Pipeline

Arrange the LINQ query to get top 3 names.

Click lines in the correct order

Available lines4 left

Your order

Click lines above to build your solution.

Show answer and explanation

Answer: var result = users .OrderByDescending(u => u.Score) .Select(u => u.Name) .Take(3);

Sort first, then project to names, then take the top 3. LINQ chains must flow logically.

Hint: Sort before selecting, select before limiting.

What this challenge tests

Code Reorder in C# / .NET: linq, chaining.

Related challenges