We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 171342e commit 7b9ded9Copy full SHA for 7b9ded9
index.js
@@ -51,6 +51,7 @@ app.get('/', (req, res) => {
51
}));
52
53
}).then(files => {
54
+ files.sort((a, b) => a.stat.ctime < b.stat.ctime ? 1 : -1);
55
res.render('index.html', { files });
56
}).catch(err => {
57
res.status(500).send(err);
0 commit comments