marinofaggiana 4 жил өмнө
parent
commit
dbf78f0458

+ 3 - 2
Share/NCShareExtension.swift

@@ -439,10 +439,11 @@ class NCShareExtension: UIViewController, NCListCellDelegate, NCEmptyDataSetDele
                         account.active = false
                     }
                 }
-                // reorder
                 
                 vcAccountRequest.activeAccount = self.activeAccount
-                vcAccountRequest.accounts = accounts
+                vcAccountRequest.accounts = accounts.sorted { (sorg, dest) -> Bool in
+                    return sorg.active && !dest.active
+                }
                 vcAccountRequest.enableTimerProgress = false
                 vcAccountRequest.enableAddAccount = false
                 vcAccountRequest.delegate = self