• Vinapocalypse@lemmy.ml
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    10 hours ago

    PR:

    -  setTimeout(() => console.log(item), item)
    +  setTimeout(() => console.log(item), Math.log(item))
    

    Comment: This will speed up sort time greatly. However, sort order may become erratic for longer lists, and lists with numbers less than 1