如何按修改日期对CloudKit结果进行排序?

gba*_*hik 5 sorting ios swift cloudkit

我正在尝试按修改日期订购搜索结果.如果我想通过creationDate做到:

query.sortDescriptors = [NSSortDescriptor(key: "creationDate", ascending: false)]
Run Code Online (Sandbox Code Playgroud)

修改日期的关键是什么?所有NSSortDescriptor键列表或找到它们的方法都非常有用.

gba*_*hik 8

在随机尝试100件事后偶然发现它.它的:

query.sortDescriptors = [NSSortDescriptor(key: "modificationDate", ascending: false)]
Run Code Online (Sandbox Code Playgroud)

他们键入"modificationDate"我仍然可以使用这些信息的列表来查找它们.-谢谢