fix Array.prototype.sort
Merge #481 r=@johnnyman727: fix Array.prototype.sort

Issue https://github.com/tessel/runtime/issues/470