function sort(type, order) { let jsList = document.querySelector("#jsList"); // console.log(jsList) let obj = { id: 0, price: 1, sales: 2, }; if (order === "asc") { let arr = Array.from(jsList.childre...