diff options
| author | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2025-01-26 20:10:36 -0500 |
|---|---|---|
| committer | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2025-01-26 20:10:36 -0500 |
| commit | 401827ebec7a833b45c16c4d23f314f272532e50 (patch) | |
| tree | 7365247a4137ce93cc99fc779c9c5108e3c0d5ef | |
| parent | 5d40bc1aac21d07c8af16615d8311e679ef50667 (diff) | |
| download | Decky-Framegen-401827ebec7a833b45c16c4d23f314f272532e50.tar.gz Decky-Framegen-401827ebec7a833b45c16c4d23f314f272532e50.zip | |
made game list alphabetical
| -rwxr-xr-x | src/index.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/index.tsx b/src/index.tsx index b2586dc..227cce7 100755 --- a/src/index.tsx +++ b/src/index.tsx @@ -237,7 +237,10 @@ function InstalledGamesSection() { const fetchGames = async () => { const result = await listInstalledGames(); if (result.status === "success") { - setGames(result.games); + const sortedGames = [...result.games].sort((a, b) => + a.name.toLowerCase().localeCompare(b.name.toLowerCase()) + ); + setGames(sortedGames); } else { console.error("Failed to fetch games"); } |
