From e1020fd499ffaa3538c0b8daede9a7b9f6c51132 Mon Sep 17 00:00:00 2001 From: Donny Date: Tue, 3 Sep 2024 15:45:14 -0600 Subject: [PATCH] Updated the sorting of the programs --- src/routes/+page.svelte | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 970ef0a..ae59c32 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -37,6 +37,7 @@ const data = await response.json(); licenses = data; + licenses.sort((a, b) => a.program.localeCompare(b.program)); } catch (err) { error = `Failed to fetch licenses: ${err.message}`; } @@ -139,25 +140,25 @@

Current License Usage


- - - - - - {#each licenses as license, index} - - - - - - {/each} -
IconProgram NameUsername
-
- {license.machine -
-

{license.program === 'Slide' ? 'Slide2' : (license.program === 'WINPROJ' ? 'Project' : license.program)}

{license.machine.toUpperCase()}
+ + Icon + Program Name + Username + + {#each licenses as license, index} + + +
+ {license.machine +
+ +

{license.program === 'Slide' ? 'Slide2' : (license.program === 'WINPROJ' ? 'Project' : license.program)}

+ {license.machine.toUpperCase()} + + {/each} +