Reintroduction to sort method

I have a small trauma when it comes to this little array method in Javascript.