     var dataStore: MWKDataStore!
     
     fileprivate func setupFetchedResultsController(with dataStore: MWKDataStore) {
-        sortActions.forEach { $0.setValue(false, forKey: "checked") }
-        sortActions[0].setValue(true, forKey: "checked")
+        // hax
+        sortActions.title.setValue(false, forKey: "checked")
+        sortActions.recentlyAdded.setValue(false, forKey: "checked")
+        let checkedAction = sort.action ?? sortActions.recentlyAdded
+        checkedAction.setValue(true, forKey: "checked")
         
         let articleRequest = WMFArticle.fetchRequest()
         let basePredicate = NSPredicate(format: "savedDate != NULL")

    
    // MARK: - Sorting
    
    fileprivate var sortDescriptor: NSSortDescriptor = NSSortDescriptor(key: "savedDate", ascending: false) {
        didSet {
            guard sortDescriptor != oldValue else {
                return
            }
            setupCollectionViewUpdaterAndFetch()

        do {
            try fetchedResultsController.performFetch()
        } catch let err {
            assertionFailure("Couldn't sort by \(sort.descriptor.key ?? "unknown key"): \(err)")
        }
        collectionView.reloadData()
    }
    
    fileprivate lazy var sortActions: (title: UIAlertAction, recentlyAdded: UIAlertAction) = {
        let titleAction = UIAlertAction(title: "Title", style: .default) { (action) in
            self.sort = (descriptor: NSSortDescriptor(key: "displayTitle", ascending: true), action: action)
        }
        let recentlyAddedAction = UIAlertAction(title: "Recently added", style: .default) { (action) in
            self.sort = (descriptor: NSSortDescriptor(key: "savedDate", ascending: false), action: action)
        }
        return (title: titleAction, recentlyAdded: recentlyAddedAction)
    }()
    
    fileprivate lazy var sortAlert: UIAlertController = {
        let alert = UIAlertController(title: "Sort saved articles", message: nil, preferredStyle: .actionSheet)
        alert.addAction(sortActions.title)
        alert.addAction(sortActions.recentlyAdded)
        let cancel = UIAlertAction(title: "Cancel", style: .cancel) { (actions) in
            self.dismiss(animated: true, completion: nil)
        }
