table.insert to ptr ref improvement, sites doc update (#11113)

* table.insert to ptr ref improvement

* Updated sites doc
This commit is contained in:
GabrieleDeri 2026-10-22 16:47:05 +02:00 • committed by GitHub
parent 7798a478ae
commit ab445aab93
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
50 changed files with 205 additions and 169 deletions

View file

@ -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)