← All tasks
🧮
Programming Beginner

Write a Multi-Column orderBy Query

⏱ 3 min ⭐ 90 XP 🔁 3 attempts allowed

What you'll do

Write the Eloquent expression that sorts posts by category first, then by newest within each category.

Scenario

The admin post list should group visually by category and show recent posts first inside each group.

Ready to try it?

Create a free account and subscribe to take "Write a Multi-Column orderBy Query". Earn 90 XP and track your internship progress.

Already have an account? Sign in