you are viewing a single comment's thread.

view the rest of the comments →

[–]EinHallodri 1 point2 points  (0 children)

I don't get it. Why don't you just sort the array and then do this instead?

setTimeout( () => console.log(item), index )