**Tell us what’s happening:*

Good morning Everyone,

I’m stuck on this algorithm. I wanted to solve it by using a for loop to sort out the sub arrays and use the pop function to take the biggest number at the end of each sub array. When I use the sort function the first 3 sub arrays sort but the last last one does not. Am i doing something wrong. I am open to ideas of solving this a different way.

Thank you in Advance for all the help

Ray

**Your code so far**

```
function largestOfFour(arr) {
// You can do this!
var sort = [];
for (var i = 0; i < arr.length; i++){
sort.push(arr[i].sort());
}
return sort;
}
largestOfFour([[4, 5, 1, 3], [13, 27, 18, 26], [32, 35, 37, 39], [1000, 1001, 857, 1]]);
```

**Your browser information:**

Your Browser User Agent is: `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36`

.

**Link to the challenge:**