Table sort columns with ctrl+alt+click

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

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

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

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
jjenkx
日安装量
0
总安装量
2
评分
0 0 0
版本
1.0
创建于
2025-11-24
更新于
2025-11-24
大小
5.0 KB
许可证
MIT
适用于
所有网站

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.