更新时间:2022-11-19 22:53:09
首先,声明你的数组作为一个类型数组,这样就可以调用方法时,你迭代:
First, declare your Array as a typed array so that you can call methods when you iterate:
var images : [imageFile] = []
然后你可以简单地做:
Then you can simply do:
images.sort({ $0.fileID > $1.fileID })