Add artworks in a deterministic order
This commit is contained in:
1 file changed
+2
-1
@@ -294,7 +294,8 @@ final class ArtworkSelectorController: NSViewController, NSCollectionViewDataSou
|
||||
}
|
||||
|
||||
private func selectedArtworks() -> [ArtworkImageObject] {
|
||||
return imageBrowser.selectionIndexPaths.map { artworks[$0.item] }
|
||||
let indexes = imageBrowser.selectionIndexPaths.map { $0.item } .sorted()
|
||||
return indexes.map { artworks[$0] }
|
||||
}
|
||||
|
||||
// MARK - UI state
|
||||
|
||||
Reference in new issue
Block a user