This script allows for the visual demonstration and testing of the performance and correct implementation of various sorting algorithms. The algorithms vary from their traditional versions because the functions are recursive. Although recursion makes the implementation more complicated, it allows for an observable running time, and the simultaneous execution of several sorts.

bubble-sort.js optimized-bubble-sort.js selection-sort.js
cocktail-sort.js optimized-cocktail-sort.js
odd-even-sort.js comb-sort.js quick-sort.js
gnome-sort.js optimized-gnome-sort.js
compare sort algorithms