Posted 01 June 2016 - 07:29 AM
As the title states, I am having a bit of trouble rearranging tables. I want to arrange a table by key value, as they are all integers I want the first entry to contain the highest integer value. For example:
Sample Input:
Desired Output
Sample Input:
{
h = 1
e = 1
l = 3
o = 2
" " = 1
w = 1
r = 1
d = 1
}
Desired Output
{
l = 3
o = 2
h = 1
e = 1
" " = 1
w = 1
r = 1
d = 1
}