Moved sortJsonArrayByProperty to prototype, fix source formatting, and use Math.floor and isNaN to improve performance