diff options
| -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"); } |
