From a7a1673f37d3be39a0129d80cddd91fed20119fe Mon Sep 17 00:00:00 2001 From: Satont Date: Sun, 3 Dec 2023 22:31:11 +0300 Subject: [PATCH] fix(landing): correct sort for `followersCount` streamers --- frontend/landing/src/components/home/Streamers.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/landing/src/components/home/Streamers.astro b/frontend/landing/src/components/home/Streamers.astro index 15468f6d9..b09f071c5 100644 --- a/frontend/landing/src/components/home/Streamers.astro +++ b/frontend/landing/src/components/home/Streamers.astro @@ -10,7 +10,7 @@ const streamersWithFollowers: GetTwirStreamersResponse_Streamer[][] = []; try { const twitchStreamersReq = await unProtectedClient.getStatsTwirStreamers({}); - const sortedStreamers = twitchStreamersReq.response.streamers.sort((a, b) => a.followersCount - b.followersCount); + const sortedStreamers = twitchStreamersReq.response.streamers.sort((a, b) => b.followersCount - a.followersCount); streamersWithFollowers.push(...chunk(sortedStreamers, 3)) // streamersWithFollowers.push(...chunk(Array.from({ length: 500 }).map(() => sortedStreamers.at(0)!), 3)); } catch (e) {