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: