I am sorting the createdAt
system field like this:
query.sortDescriptors = [NSSortDescriptor(key: "createdAt", ascending: false)]
and get the following error:
CKError 0x1c4447fb0: "Invalid Arguments" (12/2018); server message = "Unknown field 'createdAt'"; uuid = 9C450848-2449-4892-93BC-C46363203042; container ID = "...
I am able to query and sort fields that I create in this manner. Anything different with a system field? The field's index is sortable and queryable.