Table sort columns with ctrl+alt+click

Adds column sorting to any table on any website. Trigger sorting with Ctrl+Alt+Left-Click.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Upphovsman
jjenkx
Dagliga installationer
0
Totala installationer
2
Betyg
0 0 0
Version
1.0
Skapad
2025-11-24
Uppdaterad
2025-11-24
Size
4,96 KB
Licens
MIT
Gäller för
Alla sidor

This userscript automatically adds sortable columns to any HTML table on any website, without modifying the site itself. It works universally because it doesn’t depend on site-specific selectors or layouts.

How you use it

• Hold Ctrl + Alt
• Left-click any table cell in any table
• The table instantly sorts by that column

Sorting behavior

• First click = descending
• Second click = ascending
• Third click = descending again (toggles)
• Sorting can detect and compare:

Numbers (with commas handled)

Dates (mm/dd/yyyy or yyyy-mm-dd)

File/size formats (MB, GiB, etc.)

Plain text

Sorting respects:
• colSpan
• Thead/tbody if present
• Optional inclusion of the top row as sortable

When to use it

Anywhere you encounter a table with no built-in sorting:

• Download lists
• Directory listings
• Documentation tables
• Inventory lists
• Admin panels
• Data tables in older web tools
• Any unformatted HTML table

You get instant power-user level sorting without relying on website support.