tasksData.sort
(in your Tasks
component) modifies the original tasksData
array from the store, as sort
does that. Make a new array out of it beforehand, e.g. by tasksData.concat().sort(...
CLICK HERE to find out more related problems solutions.