Javascript Array Sort Method Javascript Compiler