mirror of
https://github.com/ntop/ntopng.git
synced 2026-10-31 19:12:03 +00:00
table.insert to ptr ref improvement, sites doc update (#11113)
* table.insert to ptr ref improvement * Updated sites doc
This commit is contained in:
parent
7798a478ae
commit
ab445aab93
50 changed files with 205 additions and 169 deletions
|
|
@ -438,7 +438,7 @@ end
|
|||
|
||||
function getKeysSortedByValue(tbl, sortFunction)
|
||||
local keys = {}
|
||||
for key in pairs(tbl) do table.insert(keys, key) end
|
||||
for key in pairs(tbl) do keys[#keys + 1] = key end
|
||||
|
||||
table.sort(keys, function(a, b) return sortFunction(tbl[a], tbl[b]) end)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue