Yeah, I think what he's saying is that he cloned the array, copied it into the second variable, then passed that into the sort method- which worked.
Type: Posts; User: KevinWorkman
Yeah, I think what he's saying is that he cloned the array, copied it into the second variable, then passed that into the sort method- which worked.
You aren't copying the array, you're copying the reference to the array. So both variables still point to the same array.