Fix account order (#1171)

This commit is contained in:
Keita Watanabe 2023-03-05 15:24:07 +09:00 committed by GitHub
parent 07231d0e14
commit e3ab57ea1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -78,7 +78,7 @@ public struct AppAccountsSelectorView: View {
@ViewBuilder
private var menuView: some View {
ForEach(accountsViewModel, id: \.appAccount.id) { viewModel in
ForEach(accountsViewModel.sorted { $0.acct < $1.acct }, id: \.appAccount.id) { viewModel in
Section(viewModel.acct) {
Button {
if let account = currentAccount.account,