mirror of
https://github.com/BlackMATov/evolved.lua.git
synced 2025-12-15 12:19:47 +07:00
dont sort empty and one element assoc lists
This commit is contained in:
@@ -360,7 +360,7 @@ end
|
|||||||
local function __assoc_list_sort(al, comp)
|
local function __assoc_list_sort(al, comp)
|
||||||
local al_item_count = al.__item_count
|
local al_item_count = al.__item_count
|
||||||
|
|
||||||
if al_item_count == 0 then
|
if al_item_count < 2 then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user