Feat: reverse month order

This commit is contained in:
2021-08-03 08:05:33 +02:00
parent 6a0b0b9c6e
commit 820bf435e8
2 changed files with 25 additions and 6 deletions

View File

@@ -66,7 +66,7 @@ const travail = {
Count (state) {return state.months.length},
TheEmptyMonth (state) {return {...state.empty}},
MonthsDate (state) {
return Object.keys(state.months).sort()
return Object.keys(state.months).sort().reverse()
//return state.months.sort((a, b) => new Date(b.date) - new Date(a.date))
},
getMonth: (state) => (date) => {