From 492a66e38603ec4bdf95ab1735bd1606c4e8cb64 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Sun, 20 Feb 2022 21:46:33 -0700 Subject: [PATCH] Apply sort to recorded cameras as well --- web/src/Sidebar.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/Sidebar.jsx b/web/src/Sidebar.jsx index 1e6c4d28b..5ccbc94c0 100644 --- a/web/src/Sidebar.jsx +++ b/web/src/Sidebar.jsx @@ -33,7 +33,7 @@ export default function Sidebar() { matches ? ( - {cameras.filter(([cam, conf]) => conf.gui.show).map(([camera, conf]) => { + {cameras.filter(([cam, conf]) => conf.gui.show).sort(([aCam, aConf], [bCam, bConf]) => aConf.gui.order === bConf.gui.order ? 0 : (aConf.gui.order > bConf.gui.order ? 1 : -1)).map(([camera, conf]) => { if (conf.record.enabled) { return (