From 27fd349965c22fd0af5755bc6853ca9240858d4e Mon Sep 17 00:00:00 2001 From: ayush221b Date: Fri, 26 Oct 2018 17:47:32 +0530 Subject: [PATCH] Order Projects and Notifications --- src/Components/dashboard/Dashboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/dashboard/Dashboard.js b/src/Components/dashboard/Dashboard.js index bd8d041..108bd40 100644 --- a/src/Components/dashboard/Dashboard.js +++ b/src/Components/dashboard/Dashboard.js @@ -43,7 +43,7 @@ const mapStateToProps = (state) => { export default compose( connect(mapStateToProps), firestoreConnect([ - {collection: 'projects'}, + {collection: 'projects', orderBy: ['createdAt', 'desc'] }, {collection : 'notifications', limit:3, orderBy: ['time', 'desc']} ]) )(Dashboard) \ No newline at end of file