View Single Post
08-07-17, 12:46 PM   #26
Kakjens
A Cliff Giant
Join Date: Apr 2017
Posts: 75
That's because sorted table has different structure - there's an extra dimension.
Code:
local which = 0
table.sort(numbers)
for i=#numbers,1,-1 do
     table.sort(names[numbers[i]])
    for j=1,#names[numbers[i]] do
        which = which +1
        print("TOP",which,": "..numbers[i], names[numbers[i]][j])
    end
end
Figure yourself how to stop printing.

Last edited by Kakjens : 08-07-17 at 12:48 PM. Reason: tabs are converted into *
  Reply With Quote