Using the Spaceship Operator in Twig

In this lesson, we learn how to use the new Spaceship Operator (three-way comparison operator) in Twig and Craft CMS. We use it to sort items using Twig's sort filter.

Some stuff to help you along during the lesson:

Dozens of Courses Are Waiting

Invest in yourself, your career, and your ability to take knowledge and use it grow your business or earning potential.

Get everything in the catalog plus new videos every week. Just by signing up you get immediate access to hundreds of hours of learning.

Start CraftQuest