Sort truenas pools by name

This commit is contained in:
Mark Titorenkov 2024-06-26 13:28:09 +03:00 committed by GitHub
parent b03467a832
commit dcfb6463a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -39,7 +39,9 @@ export default function Component({ service }) {
<Block label="truenas.alerts" value={t("common.number", { value: alertData.pending })} /> <Block label="truenas.alerts" value={t("common.number", { value: alertData.pending })} />
</Container> </Container>
{enablePools && {enablePools &&
poolsData.map((pool) => ( poolsData
.sort((a, b) => a.name.localeCompare(b.name))
.map((pool) => (
<Pool <Pool
key={pool.id} key={pool.id}
name={pool.name} name={pool.name}