Skip to content
Snippets Groups Projects
Commit 513e0a14 authored by D4rkHeart's avatar D4rkHeart
Browse files

[Refactor] As per MR, don't mutate items

parent d368a86e
No related branches found
No related tags found
1 merge request!20Sorting by birth date not working
......@@ -234,8 +234,7 @@ export default {
const compareFunctionReversed = function(a, b) { return - compareFunction(a, b); };
items.sort(descending ? compareFunction : compareFunctionReversed);
return items;
return [...items].sort(descending ? compareFunction : compareFunctionReversed);
},
},
components: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment