From 019e909f4b45924577ca2ae11f7167745eff81d0 Mon Sep 17 00:00:00 2001
From: cachho
Date: Fri, 3 Jan 2025 23:53:17 +0100
Subject: [PATCH] style: sort agents alphabetically
---
src/components/Popup.tsx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/components/Popup.tsx b/src/components/Popup.tsx
index c26147a..9e54dfc 100644
--- a/src/components/Popup.tsx
+++ b/src/components/Popup.tsx
@@ -10,6 +10,7 @@ import { defaultSettings, settingNames } from '../models/Settings';
const Popup = () => {
const [settings, setSettings] = useState(defaultSettings);
const storage = getStorage();
+ const sortedAgents = agents.slice().sort((a, b) => a.localeCompare(b));
function setValues(updatedSettings: Partial) {
setSettings((prevSettings) => ({
@@ -109,7 +110,7 @@ const Popup = () => {
My Shopping Agent