Sorting in JavaScript is a demo I coded back at university, inspired by this YouTube video.

Initially, I planned to add sound effects, but the course ended before I could finish that feature.

While the code isn’t the cleanest (it breaks a few principles like DRY), the sorting logic itself runs in a Web Worker, while the main thread updates the UI.

Currently, the demo supports four sorting algorithms:

  • Bubble Sort
  • Selection Sort
  • Insertion Sort
  • Shell Sort
GitHub - 0x49b/js-sort-midi
Contribute to 0x49b/js-sort-midi development by creating an account on GitHub.