From dcfb6463a1407e97eb3037fae515b22d3c67b6f4 Mon Sep 17 00:00:00 2001 From: Mark Titorenkov Date: Wed, 26 Jun 2024 13:28:09 +0300 Subject: [PATCH] Sort truenas pools by name --- src/widgets/truenas/component.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/widgets/truenas/component.jsx b/src/widgets/truenas/component.jsx index 10d45bf6..72055f09 100644 --- a/src/widgets/truenas/component.jsx +++ b/src/widgets/truenas/component.jsx @@ -39,7 +39,9 @@ export default function Component({ service }) { {enablePools && - poolsData.map((pool) => ( + poolsData + .sort((a, b) => a.name.localeCompare(b.name)) + .map((pool) => (