Skip to main content

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.

Back to lesson: Practice: Practice: Pipelines at Work