I'm working on a neat-o script, and one of the methods I've written creates a lot of graphics assets, collects their ids in an array, then sorts their ids by the objects' "top" property. It then steps through the array and toFront()'s each object. I end up with some weird random sorting errors where objects that I earlier toBack()'ed end up in front of some of the objects I've later toFront()'ed. I saw mentioned by Riley somewheres that calling toFront/toBack does an operation on every sortable object on the page. I'm wondering if this is the problem I'm experiencing and if there's a best practice I ought to be obeying. Otherwise, I could use the keen eye of a developer to see if there's something better or I could implement or perhaps evaluate if this is actually a bug in the API that needs reporting.