Scripts: Set Vdeos sort order

This commit is contained in:
Andy Freer 2020-02-09 20:20:31 +00:00
parent 98b9ef6b28
commit a0fa04bd47

View file

@ -24,7 +24,7 @@ module.exports = fs.readdirSync(dir)
let sort = (a, b) => sortAbc(a.title, b.title) let sort = (a, b) => sortAbc(a.title, b.title)
if (file.slug === 'articles') { if (file.slug === 'articles' || file.slug === 'videos') {
sort = (a, b) => sortInv(a.date, b.date) sort = (a, b) => sortInv(a.date, b.date)
} }