Adding the sorting for the archives

This commit is contained in:
monicamuyama
2025-05-25 23:50:02 +03:00
committed by rockstardev
parent 89cd1e507b
commit 6107990bf3
2 changed files with 2 additions and 1 deletions

View File

@@ -468,7 +468,7 @@ namespace BTCPayServer.Controllers
{
// FIXED: Added OrderBy to sort stores alphabetically by name
var stores = await _StoreRepository.GetStoresByUserId(_userManager.GetUserId(User));
viewModel.Stores = stores.OrderBy(store => store.StoreName).ToArray();
viewModel.Stores = stores.OrderBy(store => store.StoreName, StringComparer.InvariantCultureIgnoreCase).ToArray();
//viewModel.Stores = await _StoreRepository.GetStoresByUserId(_userManager.GetUserId(User));
var isAdmin = (await _authorizationService.AuthorizeAsync(User, Policies.CanModifyServerSettings))
.Succeeded;