Fixed the sort button in the bankist app.
When we pressed the sort button the displayMovements() was invoked with just the acc.Movements array as argument instead of the whole acc object. I fixed that.
Also even after pressing the sort button the dates would remain the same.
For each mov in the movs array we find its index in the original acc.Movements array and use that index to create our Date object.
Fixed the sort button in the bankist app. When we pressed the sort button the displayMovements() was invoked with just the acc.Movements array as argument instead of the whole acc object. I fixed that. Also even after pressing the sort button the dates would remain the same. For each mov in the movs array we find its index in the original acc.Movements array and use that index to create our Date object.