fix indentation + add tests for Array.prototype.sort