Skip to content

Commit bbac80a

Browse files
committed
remove github stars sorting
1 parent 8e29e66 commit bbac80a

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

src/features/cards/components/githubCard/GithubCard.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,10 @@ export function GithubCard({ meta, withAds }: CardPropsType) {
4343

4444
const getData = () => {
4545
return filterUniqueEntries(
46-
results
47-
.reduce((acc: Repository[], curr) => {
48-
if (!curr.data) return acc
49-
return [...acc, ...curr.data]
50-
}, [])
51-
.sort((a, b) => b.stars - a.stars)
46+
results.reduce((acc: Repository[], curr) => {
47+
if (!curr.data) return acc
48+
return [...acc, ...curr.data]
49+
}, [])
5250
)
5351
}
5452

0 commit comments

Comments
 (0)