From 8189695b2902392514a9bbe8f016c5d4c418af02 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Tue, 22 Oct 2019 17:18:37 -0500 Subject: [PATCH] Put accounts in the correct order on OPML import/export. --- iOS/Settings/SettingsViewController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iOS/Settings/SettingsViewController.swift b/iOS/Settings/SettingsViewController.swift index 6e197fb72..0c268ac1d 100644 --- a/iOS/Settings/SettingsViewController.swift +++ b/iOS/Settings/SettingsViewController.swift @@ -285,7 +285,7 @@ private extension SettingsViewController { popoverController.sourceRect = sourceRect } - for account in AccountManager.shared.activeAccounts { + for account in AccountManager.shared.sortedActiveAccounts { let action = UIAlertAction(title: account.nameForDisplay, style: .default) { [weak self] action in self?.opmlAccount = account self?.importOPMLDocumentPicker() @@ -323,7 +323,7 @@ private extension SettingsViewController { popoverController.sourceRect = sourceRect } - for account in AccountManager.shared.accounts { + for account in AccountManager.shared.sortedAccounts { let action = UIAlertAction(title: account.nameForDisplay, style: .default) { [weak self] action in self?.opmlAccount = account self?.exportOPMLDocumentPicker()