About

Update: I wrote a blog post about the process of building TV Sort. It goes into a lot more detail about the technical details of the project, as well as the design decisions I made. It also includes some of the challenges I faced, and how I solved them. I highly recommend you check it out.

TV Sort is a tool to help you find your favourite episode of a TV show. It uses a human-driven sorting algorithm to compare episodes against each other and find the best one.

I built this over Christmas 2023 while discussing the best episodes of Frasier with my family. It's hard to answer the question “what's your favourite episode?” because there are so many episodes, and so many of them are great. It's much easier to answer the question “which of these two episodes is better?” and then repeat that question a bunch of times until you have a sorted list.

If you have any questions, comments, or feedback, please tweet at me or send me an email.

Attribution

TV Sort uses the TMDB API but is not endorsed or certified by TMDB. I use the TMDB API to search for TV shows and get the episode lists for those shows. I also use the TMDB API to get the poster images for each episode, as well as links to IMDB.

TMDB logo

The plot points under each episode are adapted from its TMDB and IMDb summaries and, when there is one, its summary on Wikipedia, written by Wikipedia's contributors. Those episodes link to the Wikipedia page that the summary came from. Wikipedia's text is available under the Creative Commons Attribution-ShareAlike 4.0 License, and I share the plot points under the same licence.

The snare drum on the screen before your results is from Google's Noto Emoji and is used under the Apache License 2.0. The stage curtain behind it is a photo by tommybuddy, who dedicated it to the public domain.

Technical Details

TV Sort is built with Next.js. It was heavily inspired by Leonid Shevtsov's MonkeySort algorithm, which I love and have used countless times for my own ad-hoc lists. You compare two things at a time, and the algorithm works out the order from your answers.

The first version sorted every episode of the show, which is a lot of questions when a show has -a lot- of episodes. Now TV Sort works out your top 10 first. It asks about the episodes in the order that fans rank them and slots each one into your list as you go. When you agree with the fans, most episodes take a single question. Once your top 10 is done, you can carry on to find your bottom 10 too, or rank every episode. You can also rank just a few seasons.

You can close the tab and finish later: your answers are saved in your browser. They're also sent to the server, anonymously unless you add your name to your results. Once a few people have ranked a show, you'll find the fans' top 10 on its page. It's worked out from everyone's this-or-that answers, because 1/10 or 5/5 star ratings mean different things to different people. The home page has some fan favourites, and you can browse every ranked show.

Built with 🩵 by PocketArC with data from TMDB · Ranked shows · About · Twitter