Skip to main content Accessibility Feedback

How to build a vanilla JS sorting app

Today, I decided to try live-coding a vanilla JS app that I can use to copy/paste some data in and get back an alphabetically sorted version of it back out.

The basic version worked really well. When I tried to add a feature to clean the data up and remove unwanted lines… things got messed up really fast!

Watch me live-code the app below.

You can download the source code for both the working simple version and the incomplete advanced version on GitHub. If you figure out the advanced version, please let me know!

I know I’m just missing something silly and obvious this morning!