Sort an Array Alphabetically using the sort Method Question

The function passed to sort has to return one of three values (-1, 0, or 1), not true/false (check the examples in the documentation @ILM posted).

This has been gone over a lot on the forums (the example using > stopped working in Chrome in a out October), and there is a fix in place but it hasn’t gone live as far as I know.

Also, may help (do search the forums though, there are a lot of threads on this issue and a lot of good answers which explain what sort does, how it works etc)