Js Sort Array Based On Property