Whoa Look at this Cool Addon: Sortable

7 February 2023

The Problem

So I was running across a kind of exhausting situation today which isn't very uncommon for me: I was going through a tutorial and had to navigate a giant HTML table in a software backend that was pseudo-sorted. By pseudo-sorted I mean it was alphabetically sorted after being sorted in some other grouping. What this often looks like is something like this:

ItemDescription
AppleA red fruit that has seeds
BananaA yellow fruit that looks kind of like a #####
OrangeAn orange fruit with segments
BellA guy responsible for much of the neoliberal research hellscape
FordA shitty dude who is responsible for much of the industrialized horror of north america
KelloggA dude who thought corn flakes could stop you from masturbating

See what's happening in this list? The items have been sorted with hidden categories before being alphabetically sorted. The sorting is Category > Item but Category is not exposed to us.

This becomes quickly exhausting if you are told to find an element such as "Bell" without knowing the categorization scheme. You look after "Banana" because clearly it is alphabetically sorted, and instead find "Orange." If you are lucky, perhaps the creator of the site or application has provided a sorting method which lets you click the heading to reorganize.

And if you don't, you're sorta fucked lol.

Unless...

The Addon: Sortable

So imagine my delight when I typed "table sort" into addons.mozilla.org and discovered the addon Sortable. What it does is really simple. It adds a little icon to your URL bar, right next to where things like reader view and the old RSS icon goes.

The icon shows a 9 and a 1 arranged vertically with a downward arrow next to them.

You simply click that, and then click on the header of the table on the page that you want to sort by! And whoosh, the whole table is sorted!

The example table that I wrote at the beginning of this post is now sorted alphabetically

This saved me a ton of time today when I had to find about 15 options in a 100 option HTML table. Thus I figured this might save somebody else a lot of headache too! It's on the Firefox Addon site, and author Daniel Heath has also put the code up on Github