{"id":13473097,"url":"https://github.com/tristen/tablesort","last_synced_at":"2025-05-14T09:07:07.229Z","repository":{"id":527329,"uuid":"3589144","full_name":"tristen/tablesort","owner":"tristen","description":":arrow_up_down: A small tablesorter in plain JavaScript","archived":false,"fork":false,"pushed_at":"2025-04-21T16:59:16.000Z","size":713,"stargazers_count":1122,"open_issues_count":51,"forks_count":181,"subscribers_count":35,"default_branch":"master","last_synced_at":"2025-05-09T02:55:35.864Z","etag":null,"topics":["javascript","tablesort"],"latest_commit_sha":null,"homepage":"https://tristen.ca/tablesort/demo/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tristen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-03-01T05:38:56.000Z","updated_at":"2025-05-08T15:07:51.000Z","dependencies_parsed_at":"2024-06-18T12:20:59.504Z","dependency_job_id":"cbead913-acba-4702-b68d-baf0d061b1f5","html_url":"https://github.com/tristen/tablesort","commit_stats":{"total_commits":262,"total_committers":40,"mean_commits":6.55,"dds":0.7633587786259541,"last_synced_commit":"c2e470780d3f140d24442f8569db67b76618556f"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tristen%2Ftablesort","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tristen%2Ftablesort/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tristen%2Ftablesort/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tristen%2Ftablesort/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tristen","download_url":"https://codeload.github.com/tristen/tablesort/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254110374,"owners_count":22016391,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","tablesort"],"created_at":"2024-07-31T16:01:00.741Z","updated_at":"2025-05-14T09:07:07.209Z","avatar_url":"https://github.com/tristen.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"tablesort\n---\n\nA small \u0026 simple sorting component for tables written in JavaScript\n\n[![Build Status](https://app.travis-ci.com/tripu/tablesort.svg?branch=master)](https://app.travis-ci.com/tripu/tablesort)\n[![npm version](http://img.shields.io/npm/v/tablesort.svg)](https://npmjs.org/package/tablesort)\n\n### Quick start\n\nDownload the ZIP of this repository or install via command line: \n\n``` cli \nnpm i tablesort \n# Or if you're using Yarn \nyarn add tablesort \n```\n\n``` html\n\u003cscript src='tablesort.min.js'\u003e\u003c/script\u003e\n\n\u003c!-- Include sort types you need --\u003e\n\u003cscript src='tablesort.number.js'\u003e\u003c/script\u003e\n\u003cscript src='tablesort.date.js'\u003e\u003c/script\u003e\n\n\u003cscript\u003e\n  new Tablesort(document.getElementById('table-id'));\n\u003c/script\u003e\n```\n**[See usage and demos for more](http://tristen.ca/tablesort/demo/)**\n\n---\n\n### Browser Support\n\n| \u003cimg src=\"http://i.imgur.com/dJC1GUv.png\" width=\"48px\" height=\"48px\" alt=\"Chrome logo\"\u003e | \u003cimg src=\"http://i.imgur.com/o1m5RcQ.png\" width=\"48px\" height=\"48px\" alt=\"Firefox logo\"\u003e | \u003cimg src=\"http://i.imgur.com/8h3iz5H.png\" width=\"48px\" height=\"48px\" alt=\"Internet Explorer logo\"\u003e | \u003cimg src=\"http://i.imgur.com/iQV4nmJ.png\" width=\"48px\" height=\"48px\" alt=\"Opera logo\"\u003e | \u003cimg src=\"http://i.imgur.com/j3tgNKJ.png\" width=\"48px\" height=\"48px\" alt=\"Safari logo\"\u003e |\n|:---:|:---:|:---:|:---:|:---:|\n| 8+ ✔ | 3.6+ ✔ | 10+ ✔ | 11.50+ ✔ | 5.1+ ✔ |\n\n### Node/Browserify\n\n``` js\n// npm install tablesort\nvar tablesort = require('tablesort');\n\ntablesort(el, options);\n```\n\n### Default CSS\nAdd the styling from [tablesort.css](tablesort.css) file to your CSS or roll with your own.\n\n\n### Extending Tablesort\n\nIf you require a sort operation that does not exist\nin the [sorts](https://github.com/tristen/tablesort/tree/gh-pages/src/sorts/)\ndirectory, you can add your own.\n\n``` js\nTablesort.extend('name', function(item) {\n\n  // Regular expression to test against.\n  // `item` is a table value to evaluate.\n  return /foo/.test(item);\n}, function(a, b) {\n\n  // Custom sort functionality goes here.\n  // e.g var n = (a \u003e b) ? -1 : 1;\n  return n;\n});\n```\n\nIf you've made an extend function that others would benefit from pull requests\nare gladly accepted!\n\n### Contributing\n\nDependencies: Node.js 16 or 18; npm 8.\n\nTablesort relies on [Grunt](http://gruntjs.com) as its build tool. Simply run\n`npm run build` to package code from any contributions you make to `src/tablesort.js`\nbefore submitting pull requests.\n\nTests are run via:\n\n```sh\nnpm ci \u0026\u0026 npm t\n```\n\n### Licence\n\nMIT\n\n### Bugs?\n\n[Create an issue](https://github.com/tristen/tablesort/issues)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftristen%2Ftablesort","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftristen%2Ftablesort","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftristen%2Ftablesort/lists"}