re-read my original post, you missed something important…
>> for k,v in pairs(objList) do
nope – pairs() defeats the whole purpose of sorting a list!, as the order of iteration with pairs() is undefined. you MUST iterate numerically, either with “for i=1,#table” or “for k,v in ipairs(table)” (note the “i” in ipairs, critical difference)
once sorted back-to-front, and iterated in numeric order, toFront() will indeed work.
[EDIT] it occurs to me that THIS is the part you might not “get”:
-- assuming your current list is by alpha keys: local anUnsortableList = ..whatever, your current list as is -- so MAKE a sortable list: local aSortableList = {} for k,v in pairs(anUnsortableList) do aSortableList[#aSortableList+1] = v end -- then sort it local function sortfn(a, b ) return a.y \< b.y end table.sort(aSortableList,sortfn) -- then order your objects in the display for i=1,#aSortableList do aSortableList[i]:toFront() end -- done, no longer need this aSortableList = nil