Internally, key-value pair tables in Lua/Luau (that aren’t ordered number keys) are represented with a hash map, and therefore do not have any defined order. The order you use to declare your table in your source code has no effect on how the data will actually be laid out in memory. If you need order, use arrays.
It might actually be that the table is mixed. Unless the hashes are completely random, the keys should be converted in a way such that they are numerically ordered. Please point out if I have reached a wrong conclusion.