I got an table like this:
tbl = {
['etc1'] = 1337,
['etc2'] = 14477,
['etc3'] = 1336,
['etc4'] = 1335
}
And now I need to sort this table to get output from highes to lowest value:
tbl = {
['etc2'] = 14477,
['etc1'] = 1337,
['etc3'] = 1336,
['etc4'] = 1335
}
Already tried lots of functions like table.sort or others from the official manual, but nothing helped. So hope you'll help me out guys!
Regards.