How to fix a mutation of original array in Store when making a computed array (Vue3, Pinia)
when I am making computed property sortedTodoList I am returning the sorted variant of the original todoList, but if sorted option is not selected it parses through the original todoList without any sorting. My problem is that when I make sorting the original list mutates. It is shown not only in UI when changing sort method to none but also in Vue devtools. How to fix it?