Skip to content

Commit 37fcb86

Browse files
committed
sort repos
1 parent 5e714e4 commit 37fcb86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/githubAPI.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module.exports= {
3838
console.log('error:', error);
3939
}
4040
var sortedBody = JSON.parse(body).sort(function(a, b) {
41-
return parseFloat(b.pushed_at) - parseFloat(a.pushed_at);
41+
return new Date(b.updated_at) - new Date(a.updated_at);
4242
});
4343
res.status(200).send(sortedBody);
4444
});

0 commit comments

Comments
 (0)