Practice · 2 of 3
Sort by rule, not by loop
CHALLENGE
Difficulty: intermediate+25 XP
Using a lambda or method reference (no manual loop): return the words sorted by length, shortest first; same-length words keep alphabetical order.
Press Submit to check your solution.
Back to lesson: Practice: Practice: Pipelines at Work