How can I sort a dictionary?

This should get rid of the e+ in the long number

local dictionary = {
	["1"] = "2734563424325845",
	["2"] = "34",
	["3"] = "245",
}

local array = {}
for _, value in pairs(dictionary) do
	table.insert(array, tonumber(value))
end

table.sort(array)

for i, key in ipairs(array) do
    print(string.format("%.0f", key)) -- Here
    array[i] = tostring(key)
end

Reference website

3 Likes