{"id":19947378,"url":"https://github.com/signified/sortable","last_synced_at":"2025-03-01T14:18:46.157Z","repository":{"id":194675730,"uuid":"534446345","full_name":"signified/sortable","owner":"signified","description":"Super simple, completely configurable, sortable tables.","archived":false,"fork":false,"pushed_at":"2022-10-08T20:57:33.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-12T05:28:41.473Z","etag":null,"topics":["javascript","javascript-library","javascript-plugin","javascript-table","javascript-table-library","javascript-table-sorter","sort","sortable","sortable-columns","sortable-table","sortablejs","sortabletableview","sorting","table","tables"],"latest_commit_sha":null,"homepage":"https://signified.github.io/sortable","language":"HTML","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/signified.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-09-09T00:50:04.000Z","updated_at":"2022-12-10T07:49:06.000Z","dependencies_parsed_at":"2023-09-14T16:16:18.251Z","dependency_job_id":null,"html_url":"https://github.com/signified/sortable","commit_stats":null,"previous_names":["signified/sortable"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/signified%2Fsortable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/signified%2Fsortable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/signified%2Fsortable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/signified%2Fsortable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/signified","download_url":"https://codeload.github.com/signified/sortable/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241374550,"owners_count":19952545,"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","javascript-library","javascript-plugin","javascript-table","javascript-table-library","javascript-table-sorter","sort","sortable","sortable-columns","sortable-table","sortablejs","sortabletableview","sorting","table","tables"],"created_at":"2024-11-13T00:35:48.863Z","updated_at":"2025-03-01T14:18:46.132Z","avatar_url":"https://github.com/signified.png","language":"HTML","readme":"# Sortable\n\nSuper simple, completely configurable, sortable tables.\n\n## Installation\n\n1. Add the JavaScript before the `\u003c/body\u003e` (required)\n\n    ```html\n    \u003cscript src=\"sortable.js\"\u003e\u003c/script\u003e\n    ```\n\n    or via jsDeliver:\n\n    ```html\n    \u003cscript src=\"https://cdn.jsdelivr.net/gh/signified/sortable@1.0.4/sortable.min.js\"\u003e\u003c/script\u003e\n    ```\n\n1. Add the stylesheet in the `\u003chead\u003e` (optional)\n\n    ```html\n    \u003clink rel=\"stylesheet\" href=\"sortable.css\"\u003e\n    ```\n\n    or via jsDeliver:\n\n    ```html\n    \u003clink rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/gh/signified/sortable@1.0.4/sortable.min.css\"\u003e\n    ```\n\n**Note:** The supplied stylesheet applies default styling rules. Feel free to use it as a starting point or, if you're using a framework like Bootstrap or Tailwind CSS, make use of the `options` to take full advantage of the component and utility classes these frameworks provide.\n\n## Usage\n\nUsage examples can be found at https://signified.github.io/sortable.\n\n```javascript\nsortable(selectors, options);\n```\n\n### `selectors` (string | required)\n\nA string containing one or more selectors to match against. For example, `'table'` will match every `\u003ctable\u003e` element.\n\n### `options` (object | optional)\n\nAn object representing optional configuration options.\n\n```javascript\n{\n  // An array of class attribute values to apply to the \u003cbutton\u003e element that Sortable adds to each \u003cth\u003e element.\n  buttonClasses: ['sortable-button'],\n\n  // An array of class attribute values to apply to the \u003cth\u003e and each \u003ctd\u003e of the currently sorted column.\n  sortClasses: ['sortable-sort'],\n\n  // An array of class attribute values to apply to the \u003cth\u003e and each \u003ctd\u003e of the currently sorted column that has been sorted as a string (alphabetically).\n  sortStringClasses: ['sortable-sort-string'],\n\n  // An array of class attribute values to apply to the \u003cth\u003e and each \u003ctd\u003e of the currently sorted column that has been sorted as a number (numerically).\n  sortNumberClasses: ['sortable-sort-number'],\n\n  // An array of class attribute values to apply to the \u003cth\u003e and each \u003ctd\u003e of the currently sorted column that has been sorted as a date.\n  sortDateClasses: ['sortable-sort-date'],\n\n  // An array of class attribute values to apply to the \u003cth\u003e and each \u003ctd\u003e of the currently sorted column that has been sorted as a dot decimal.\n  sortDotDecimalClasses: ['sortable-sort-dot-decimal'],\n\n  // An array of class attribute values to apply to the \u003cth\u003e and each \u003ctd\u003e of the currently sorted column that has been sorted in ascending order.\n  sortAscendingClasses: ['sortable-sort-ascending'],\n\n  // An array of class attribute values to apply to the \u003cth\u003e and each \u003ctd\u003e of the currently sorted column that has been sorted in descending order.\n  sortDescendingClasses: ['sortable-sort-descending']\n}\n```\n\n## Contributing\n\nSee [Contributing](https://github.com/signified/.github/blob/main/CONTRIBUTING.md).\n\n## Credits\n\nSee [Contributors](https://github.com/signified/sortable/graphs/contributors).\n\n## License\n\nSee [LICENSE](LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsignified%2Fsortable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsignified%2Fsortable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsignified%2Fsortable/lists"}