How do you order by content type field? There are examples of using sys fields such as createdAt but no examples of sorting using content type fields.
This is a code example in the documentation:
let query = Query.where(contentTypeId: "<content_type_id>")
try! query.order(by: Ordering(sys: .createdAt))
I am trying to achieve something like this:
let query = QueryOn<NewsDataModel>()
try! query.order(by: Ordering(NewsDataModel.Fields.date.stringValue))