Reverse the sign of the return value of the compare function and your array will be sorted in descending order. Example. const customers = [ { name: 'Sara' ...
確定! 回上一頁