We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e714e4 commit 37fcb86Copy full SHA for 37fcb86
src/githubAPI.js
@@ -38,7 +38,7 @@ module.exports= {
38
console.log('error:', error);
39
}
40
var sortedBody = JSON.parse(body).sort(function(a, b) {
41
- return parseFloat(b.pushed_at) - parseFloat(a.pushed_at);
+ return new Date(b.updated_at) - new Date(a.updated_at);
42
});
43
res.status(200).send(sortedBody);
44
0 commit comments