Skip to content

Commit

Permalink
currently logged in accounts now is the first entry in the list
Browse files Browse the repository at this point in the history
  • Loading branch information
sahin-a committed Apr 18, 2023
1 parent be5b464 commit 24c4feb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ private async void AddAccount()
await _switchAccountUseCase.Execute(string.Empty);
}

private IEnumerable<Account> SortAccounts(Account[] accounts) => accounts.OrderByDescending(x => x.Rank.Level)
private IEnumerable<Account> SortAccounts(Account[] accounts) => accounts.OrderByDescending(x => x.IsLoggedIn)
.ThenByDescending(x => x.Rank.Level)
.ThenBy(x => x.Name)
.ThenBy(x => x.IsVacBanned);

Expand Down

0 comments on commit 24c4feb

Please sign in to comment.