13 Sorting Algorithms in Roblox

Quick project I made in studio, looks pretty cool.
Let me know if any of these are incorrect since I had to mess with some of the code to properly visualize it.

If you were wondering how I added table.sort, it was taken from the Luau repository and converted to luau. Yeah it’s not as fast but it’s purely for visualization purposes only.
not even sure if I did it correctly…

Most of the sorting algorithms shown in this video was taken from this repository.

8 Likes

why am I enjoying listening to this? :sob:

3 Likes

5+ points for this, 20+ points for not forgetting the best sorting algorithm (bogo, ofc), -math.huge points for ear-rape

I swear roblox fully relies on this when sorting out games for the charts page

1 Like

Cocktail sort definitely sounds the best.

Fascinating project! I never knew that some sorting algorithms were so much faster than others.
image