RED-6713: sort tenants

This commit is contained in:
Dan Percic 2023-06-02 17:11:29 +03:00
parent 140ad55646
commit 8ebd5f760d

View File

@ -20,7 +20,9 @@ export class TenantSelectComponent {
tenantId: ['', Validators.required],
});
protected readonly _tenantsService = inject(TenantsService);
protected readonly storedTenants = this._tenantsService.getStoredTenants();
protected readonly storedTenants = this._tenantsService
.getStoredTenants()
.sort((a, b) => a.tenant.displayName.localeCompare(b.tenant.displayName));
protected readonly titleService = inject(Title);
protected readonly toaster = inject(Toaster);
readonly #router = inject(Router);