Свифт как сортировать массив

var images : [imageFile] = []
images.sorted(by: { $0.fileID > $1.fileID })
Mobile Star