Skip to content

Commit

Permalink
fix order
Browse files Browse the repository at this point in the history
  • Loading branch information
ugolino committed Jul 14, 2021
1 parent bf698e0 commit e8fd96c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/Addresses.vue
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ export default {
},
addressesByWeek(array, addressName){
let arrayByWeek = _(array)
let arrayByWeek = _(array.sort((a, b) => a.timestamp.localeCompare(b.timestamp)))
.groupBy( item => this.$moment.utc( this.$moment.unix(item['timestamp']) , 'MM-DD-YY').startOf('isoWeek') )
.map((objs, key) => ({
'date': this.$moment.utc(key).format('MM-DD-YY'),
Expand Down

0 comments on commit e8fd96c

Please sign in to comment.