How to loop throught this dictionary in order?

Is it possible to loop through this in order considering the number the “pa” thing is given?

local MyTable = { 
                    ["pa3"] = "NoPlant",
                    ["pa4"] = "NoPlant",
                    ["pa2"] = "NoPlant",
                    ["pa1"] = "NoPlant"
}

The indexes that are strings are automatically sorted by lua.

(Sorry for the late reply, I leave opened the page)

1 Like

Thanks for the respond. I don’t need help anymore. Fixed the problem diffrent way than sorting dictionary.

Oh, don’t worry.
Can you close the post giving the answer?