Skip to content

Commit

Permalink
Merge pull request #66 from sahin-a/65-show-currently-logged-account-…
Browse files Browse the repository at this point in the history
…first-in-the-list

currently logged in accounts now is the first entry in the list
  • Loading branch information
sahin-a committed Apr 18, 2023
2 parents be5b464 + 24c4feb commit e7a31ef
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 e7a31ef

Please sign in to comment.