# HubSpot/sortable

Drop-in script to make tables sortable

Repository: https://github.com/HubSpot/sortable
Canonical: https://ross.abutalabs.com/products/hubspot-sortable
Homepage: http://github.hubspot.com/sortable/docs/welcome
Language: CSS
License: MIT
License Family: permissive
Last push: 2023-02-26T00:24:50+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4669, "days_push": 1285, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1318, forks 110 (observed 2026-08-28T04:04:21.193929+00:00)

## What it is
Sortable is a tiny (<2kb min+gzip) JavaScript and CSS library that adds click-to-sort functionality to HTML tables with no dependencies. It works as a drop-in script with several built-in CSS themes and requires only adding a data attribute to table elements.

## Use cases
- make html tables sortable
- add column sorting to a static website table
- sort table rows by clicking headers without a framework
- add sortable tables to a blog or docs site
- lightweight table sorting without jquery

## When to choose
- you want a zero-dependency drop-in script for table sorting
- your site uses plain HTML tables and you need minimal footprint
- you need broad legacy browser support (IE8+)

## When to avoid
- you need advanced table features like pagination, filtering, or virtual scrolling
- you use a component framework and prefer a full data-grid component
- you need actively developed features or frequent updates

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components
- domain: web-development, frontend
- platform: browser
- tags: tables, sorting, drop-in-script, vanilla-javascript, css-themes

## Member repositories
- HubSpot/sortable (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:21.193929+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:47:56.498985+00:00, confidence not recorded.
  - readme: https://github.com/HubSpot/sortable (fetched 2026-08-28T04:04:21.193929+00:00, sha 49ca6554cc69)
  - homepage: http://github.hubspot.com/sortable/docs/welcome (fetched 2026-08-29T12:06:30.150750+00:00, sha 18ef8c4e3db1)
  - site_page: https://github.hubspot.com/sortable (fetched 2026-08-29T12:06:30.159742+00:00, sha 0c8d29641399)
- Data as of 2026-08-30T08:39:29.467469+00:00.
