Actually we just need adjust the code. Easy.
See the change that I highlighted :
Delete first variable than change 'self.quee' into 'self.animationFrame'
So first item will be positioned based on their animation frame order
(1st item frame 0)
(2nd item frame 1)
(3rd item frame 2)
(etc..)
if you don't like zero based you could write the code: 'self.animationFrame+1' ------> just for convenient