Sorting query results – SwiftData Starter Project 5/8

See how we can use key paths and sort descriptors to adjust sort orders for @Query, then look at how we can get dynamic sorting through constructor injection. You can find the completed source code here: https://github.com/twostraws/iTour This is an 8-part project that walks you through building a SwiftData project from scratch using SwiftUI. It's designed to work alongside my book SwiftData by Example, available at https://www.hackingwithswift.com/quic... This project is aimed at programmers who have some experience with Swift and SwiftUI already, and want to get up to speed with SwiftData as quickly as possible.