I have that code:
arr = arr.sort(function (a, b) {
return a.time>b.time
})
Do I need to redefine arr or it is possible just to call sort function? like this:
arr.sort(function (a, b) {
return a.time>b.time
})
Will the sort and filter functions change the original array?