Here's my proposal: function sortObjectByValue (obj) { const map = new Map() Object.entries(obj) .sort((a, b) => obj[b][1] - obj[a][1]) .
確定! 回上一頁