you are viewing a single comment's thread
view the rest of the comments
[–] 3 points 1 year ago* (last edited 1 year 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

  • source