Sort Table Function JavaScript function to sort table ascending or descending. Function can also sort table with input elements in cells. Example project. Project Preview