Leetcode Array Sort Method In Js How To Take