The sorting algorithm that shouldn’t. @standupmaths
The sorting algorithm that shouldn’t.  @standupmaths
Uploaded September 2026 | Updated September 2026, 2 weeks ago
Click this link https://boot.dev/?promo=STANDUPMATHS and use my code STANDUPMATHS to get 25% off your first payment for boot.dev

Stanley P. Y. Fung’s original paper can be found here:
arxiv.org/pdf/2110.01111

Along with an addendum to paper answering all of your burning questions here:
cs.le.ac.uk/people/pyf1/sorting.html

The viral video of sorting algorithms visualiser and sonifier is here:
youtube.com/watch?v=kPRA0W1kECg

And more info on the sonifier:
panthema.net/2013/sound-of-sorting

If you want some info on genuinely useful sorting algorithms the check out Boot.Dev’s video:
youtube.com/watch?is=mIPDDmyo9IP5iaeZ&v=GMV7ycKZ-mM&feature=youtu.be

Thank you to Andy Chisholm for creating the brilliant sound effects for the SWAP graphic. Find him over at andychisholm.com

For more unnecessary detail, tickets for upcoming London (including on September 7th) shows are available here: festivalofthespokennerd.com/tickets

Also I'm touring the UK again for the final time with Getting Triggy With It this Autumn. It's a short tour, so get your tickets here: standupmaths.com/shows

Huge thanks to my Patreon supporters.There is no sorting algorithm I have yet found which could put them in order. patreon.com/standupmaths

CORRECTIONS
- Thanks to a few people for pointing out my dry-wipe pseudo-code for Bubble Sort is a bit out. where it says "if i [greater than] i+1" it should read "if L[I] [greater than] L[i+1]”. Also this correction should use the 'greater than' symbol but YouTube won't let me put them in.

Filming by Alex Genn-Bash
Editing by Gus Melton
Written and performed by Matt Parker
Directed by Rhys Jones
Produced by Nicole Jacobus
Music by Howard Carter
Design by Simon Wright and Adam Robinson

MATT PARKER: Stand-up Mathematician
Website: standupmaths.com
Click this link https://boot.dev/?promo=STANDUPMATHS and use my code STANDUPMATHS to get 25% off your first payment for boot.dev

Stanley P. Y. Fung’s original paper can be found here:
arxiv.org/pdf/2110.01111

Along with an addendum to paper answering all of your burning questions here:
cs.le.ac.uk/people/pyf1/sorting.html

The viral video of sorting algorithms visualiser and sonifier is here:
youtube.com/watch?v=kPRA0W1kECg

And more info on the sonifier:
panthema.net/2013/sound-of-sorting

If you want some info on genuinely useful sorting algorithms the check out Boot.Dev’s video:
youtube.com/watch?is=mIPDDmyo9IP5iaeZ&v=GMV7ycKZ-mM&feature=youtu.be

Thank you to Andy Chisholm for creating the brilliant sound effects for the SWAP graphic. Find him over at andychisholm.com

For more unnecessary detail, tickets for upcoming London shows are available here: festivalofthespokennerd.com/tickets

Huge thanks to my Patreon supporters.There is no sorting algorithm I have yet found which could put them in order. patreon.com/standupmaths

CORRECTIONS
- None yet, let me know if you spot anything!

Filming by Alex Genn-Bash
Editing by Gus Melton
Written and performed by Matt Parker
Directed by Rhys Jones
Produced by Nicole Jacobus
Music by Howard Carter
Design by Simon Wright and Adam Robinson

MATT PARKER: Stand-up Mathematician
Website: standupmaths.com
The sorting algorithm that shouldn’t.Why didnt GPS crash?Explaining the Trump Tariff EquationHow Roman numerals broke the official dog database.Can the Same Net Fold into Two Shapes?What is up with UK bridge height signs?The magic of adding random noise to black and white images.Calculating pi from coin flips (without randomness)Ellipsoids and The Bizarre Behaviour of Rotating BodiesCalculating π with Avogadros NumberMaking efficient Platonic and Archimedean shapes in a kaleidoscopeHow many calendars are there?
Stand-up Maths |

The sorting algorithm that shouldn’t.

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER