Skip to content

Commit efe9212

Browse files
committed
feat: add followers sort based on name
1 parent 754feb4 commit efe9212

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/src/fetchFollowers.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ const getLatestFollowers = async () => {
3030
picUrl: follower.avatar_url,
3131
}));
3232

33+
followers.sort((a, b) => {
34+
return a.profileUrl.localeCompare(b.profileUrl);
35+
});
36+
3337
return followers;
3438
} catch (error) {
3539
console.error("Error fetching followers:", error.message);

0 commit comments

Comments
 (0)