Try creating a copy of the array before trying to sort it. Like using a spread operator.
arrayForSort = [...this.taskList]
Then after sorting you could assign it back to the taskList field
Try creating a copy of the array before trying to sort it. Like using a spread operator.
arrayForSort = [...this.taskList]
Then after sorting you could assign it back to the taskList field