You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
The text was updated successfully, but these errors were encountered: