Common JavaScript Errors:
Sorting out array.sort

The problem

The recommendation

Want to master all the JavaScript gotchas?