Skip to content

apairs

Pairs a table in alphabetical order

Argument Data Type Needed Default Description
Table table - The table

Dont need to be called every frame


Example
local table = {
    ["Z"] = true,
    ["B"] = true,
    ["A"] = true,
    ["G"] = true
}


for k,v in apairs(table) do
    print(k,v)
end
Expected result
A   true
B   true
G   true
Z   true

Last update: October 31, 2022
Created: June 27, 2021