local tSort = table.sort
local function sortSpriteGroupA(event)
local localList = enemyList
local function comp(a, B)
return a.y > b.y
end
tSort(localList,comp)
for count =1,#localList do
spriteGroupA:insert(count,localList)
end
end
there is a list of displayobjects called enemyList and I want to sort them according to their y coordinates(so the ones on the lower coordinates would come to the front of other objects) in to the
spritegroup (group object)… would this be a process that would influence the performance??