Fix selection must be sorted

This commit is contained in:
relikd
2019-08-14 11:49:06 +02:00
parent 5ff1753858
commit e6f4d05213

View File

@@ -159,7 +159,7 @@ const NSPasteboardType dragReorder = @"de.relikd.baRSS.drag-reorder";
// Persist state, because on crash we have at least inserted items (without articles & icons)
[StoreCoordinator saveContext:moc andParent:YES];
if (selection.count > 0)
[self.dataStore setSelectionIndexPaths:selection];
[self.dataStore setSelectionIndexPaths:[selection sortedArrayUsingSelector:@selector(compare:)]];
[WebFeed batchDownloadFeeds:feedsList favicons:YES showErrorAlert:YES finally:^{
[self endCoreDataChangeUndoEmpty:NO forceUndo:NO];
[self someDatesChangedScheduleUpdateTimer];