18.11.2019, 21:03
(This post was last modified: 18.11.2019, 21:05 by Erwin van der Zwart.)
Hi,
You can try this:
BR,
Erwin
You can try this:
Code:
tbl = {key2 = 3, key1 = 2, key3 = 1}
table.sort(tbl, function(a, b) return a > b end)
log(tbl)
Erwin