Sort Array By Property Javascript Compiler Offline