Sort Service Account based on short description
@@ -132,7 +132,8 @@ export class SelectPrincipalAccount extends PureComponent<SelectPrincipalAccount
rval.push(
<SelectGroup label={"Service accounts"} key="service_accounts_group">
{
- filteredSAs.map(principalToSelectOption)
+ filteredSAs.sort((a, b) => a.displayName && b.displayName ? a.displayName.localeCompare(b.displayName) : -1).
+ map(principalToSelectOption)
}
</SelectGroup>,
);
