local array = {math.cos(3), math.sin(1), 9, 6} table.insert(array, 2, 7) table.sort(array) table.remove(array, 2) for i, v in ipairs(array) do print(i, v) end
To embed this program on your website, copy the following code and paste it into your website's HTML: