Board Thread:Support Requests - Community Management/@comment-3328029-20150812202444/@comment-24473195-20150814191024

Meta tables allow you to modify the default behaviour of tables (http://www.lua.org/pil/13.html). I haven't really used them, but that's what makes the frame object behave in wierd ways. Such as not making the args table readonly.

So in theory it is possible to do the "order" table thing automatically (http://stackoverflow.com/questions/652957/how-do-i-get-the-number-of-keys-in-a-hash-table-in-lua). It is even possible to overload the # operator so it actually returns what you want (http://stackoverflow.com/questions/25716851/lua-table-length-function-override-not-working).

For simplicity sake, you could use your approach though.