Noticed this in Eleventy v1.0.0 (w/ liquidjs@9.34.0).
If I have an array, and I sort it using the sort filter, it seems to modify my original array.
I think I may have expected the sorted array to be a copy of my original and not modifying the reference to the array. I can work around it, but thought maybe worth filing (although i'm sure changing the default behavior may have other backwards compatibility issues).
Noticed this in Eleventy v1.0.0 (w/ liquidjs@9.34.0).
If I have an array, and I sort it using the
sort
filter, it seems to modify my original array. I think I may have expected the sorted array to be a copy of my original and not modifying the reference to the array. I can work around it, but thought maybe worth filing (although i'm sure changing the default behavior may have other backwards compatibility issues).