Skip to content

Commit 27fd349

Browse files
author
ayush221b
committed
Order Projects and Notifications
1 parent 8c296fc commit 27fd349

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Components/dashboard/Dashboard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const mapStateToProps = (state) => {
4343
export default compose(
4444
connect(mapStateToProps),
4545
firestoreConnect([
46-
{collection: 'projects'},
46+
{collection: 'projects', orderBy: ['createdAt', 'desc'] },
4747
{collection : 'notifications', limit:3, orderBy: ['time', 'desc']}
4848
])
4949
)(Dashboard)

0 commit comments

Comments
 (0)