Skip to content

Commit b977077

Browse files
committed
Merge branch 'develop' of github.com:medyo/hackertab.dev into develop
2 parents d3e6971 + 96739d2 commit b977077

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/features/cards/components/devtoCard/DevtoCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export function DevtoCard({ withAds, meta }: CardPropsType) {
4444
if (!curr.data) return acc
4545
return [...acc, ...curr.data]
4646
}, [])
47-
.sort((a, b) => b.reactions - a.reactions)
47+
.sort((a, b) => b.published_at - a.published_at)
4848
}
4949

5050
const renderItem = (item: Article, index: number) => (

src/features/cards/components/freecodecampCard/FreecodecampCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export function FreecodecampCard({ meta, withAds }: CardPropsType) {
4444
if (!curr.data) return acc
4545
return [...acc, ...curr.data]
4646
}, [])
47-
.sort((a, b) => b.reactions - a.reactions)
47+
.sort((a, b) => b.published_at - a.published_at)
4848
}
4949

5050
const renderItem = (item: Article, index: number) => (

src/features/cards/components/hashnodeCard/HashnodeCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export function HashnodeCard({ withAds, meta }: CardPropsType) {
4444
if (!curr.data) return acc
4545
return [...acc, ...curr.data]
4646
}, [])
47-
.sort((a, b) => b.reactions - a.reactions)
47+
.sort((a, b) => b.published_at - a.published_at)
4848
}
4949

5050
const renderItem = (item: Article, index: number) => (

src/features/cards/components/mediumCard/MediumCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export function MediumCard({ meta, withAds }: CardPropsType) {
4444
if (!curr.data) return acc
4545
return [...acc, ...curr.data]
4646
}, [])
47-
.sort((a, b) => b.reactions - a.reactions)
47+
.sort((a, b) => b.published_at - a.published_at)
4848
}
4949

5050
const renderItem = (item: Article, index: number) => (

0 commit comments

Comments
 (0)