From 7f17fe3486652732565f2be303c536464507c713 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Tue, 3 Dec 2019 12:04:54 +0100 Subject: Fix posts order --- scripts/generateApi.js | 2 -- 1 file changed, 2 deletions(-) (limited to 'scripts/generateApi.js') diff --git a/scripts/generateApi.js b/scripts/generateApi.js index 7635f02..4b7426a 100755 --- a/scripts/generateApi.js +++ b/scripts/generateApi.js @@ -15,8 +15,6 @@ posts = posts.map(({ date, title, content, route }) => { } }) -posts.sort((a, b) => (a.route > b.route ? 1 : -1)) - fs.writeFile('./dist/api/posts.json', JSON.stringify(posts), err => err ? console.log(err) : null ) -- cgit 1.4.1