need to sort the table name by alphabetical and camera by numerical
as i am using a local storge to get the details and store the values let tempHolder = localStorage.getItem("mobiles") || mobiles; here is code for reference https://code.sololearn.com/W5Is5XeC26Y6 now i need to sort the table name in alpha and camera in numerical but i cant figure how to do since i get the data from the local storage function displayTable(mobo) { cleanstorage(); var table = document.getElementById("mobo"); var row = document.createElement("tr"); var properties = ["name", "brand", "camera", "processor", "premium"]; for (var j = 0; j < properties.length; ++j) { var cell = document.createElement("th"); cell.innerHTML = properties[j]; row.appendChild(cell); } table.appendChild(row); for (var i = 0; i < mobo.length; ++i) { var mobo1 = mobo[i]; var row = document.createElement("tr"); var cell = document.createElement("td"); cell.innerHTML = mobo1.name; row.appendChild(cell); var cell2 = document.createElement("td"); cell2.innerHTML = mobo1.brand; row.appendChild(cell2); var cell3 = document.createElement("td"); cell3.innerHTML = mobo1.camera; row.appendChild(cell3); var cell4 = document.createElement("td"); cell4.innerHTML = mobo1.processor; row.appendChild(cell4); table.appendChild(row); var cell5 = document.createElement("td"); if (mobo1.brand == "iPhone" || mobo1.brand == "Samsung") { cell5.innerHTML = "yes"; } else { cell5.innerHTML = "no"; } row.appendChild(cell5); table.appendChild(row); }