From 665c586d44003ba9726a2d6b6645d97289bf84b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxi=20Quo=C3=9F?= Date: Mon, 23 Jan 2023 00:27:50 +0100 Subject: [PATCH] sort device grid by name --- README.md | 6 +++--- frontend/src/routes/+page.svelte | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ace826c5..3d4fc81b 100644 --- a/README.md +++ b/README.md @@ -33,12 +33,12 @@ Open up [localhost:5173/](localhost:5173/) - [ ] add rest of settings page - [ ] form for adding new devices - [ ] add per device settings - - [x] theme toggle button - - [x] add device ports to cards + - [x] ~~theme toggle button~~ + - [x] ~~add device ports to cards~~ - backend - - [x] make sure ping works + - [x] ~~make sure ping works~~ - [ ] make sure arp works - [ ] make sure wake works - [ ] remove nmap? diff --git a/frontend/src/routes/+page.svelte b/frontend/src/routes/+page.svelte index f0de40d2..40db94fc 100644 --- a/frontend/src/routes/+page.svelte +++ b/frontend/src/routes/+page.svelte @@ -13,7 +13,8 @@ // get all devices in pocketbase const result = await pb.collection('devices').getFullList(200, { - expand: 'ports' + expand: 'ports', + sort: 'name' }); result.forEach((device) => { devices[device.id] = device;