From 401827ebec7a833b45c16c4d23f314f272532e50 Mon Sep 17 00:00:00 2001 From: xXJSONDeruloXx Date: Sun, 26 Jan 2025 20:10:36 -0500 Subject: made game list alphabetical --- src/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/index.tsx') 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"); } -- cgit v1.2.3