function up() { return cups.sort((a, b) => a.sales - b.sales) } function down() { return cups.sort((a, b) => { return b.sales - a.sales }) } upbtn.onclick = function () { let info = up() renderHtml(info) } downbtn.onclick = function () { let info = down() renderHtml(info) } function renderHtml...