{"id":46324461,"url":"https://github.com/runkids/vue-column-sortable","last_synced_at":"2026-03-04T16:07:29.838Z","repository":{"id":48029677,"uuid":"151574840","full_name":"runkids/vue-column-sortable","owner":"runkids","description":":arrows_clockwise:  vue-column-sortable is an data sortable directive for vue.js.","archived":false,"fork":false,"pushed_at":"2021-08-10T20:04:57.000Z","size":139,"stargazers_count":9,"open_issues_count":3,"forks_count":4,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-09T14:12:04.821Z","etag":null,"topics":["column-sorting","orderby","sort","sortable","sortable-helper","table-sorting","vue","vue-directive"],"latest_commit_sha":null,"homepage":"https://github.com/runkids/vue-column-sortable","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/runkids.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}},"created_at":"2018-10-04T13:20:08.000Z","updated_at":"2023-03-17T12:13:18.000Z","dependencies_parsed_at":"2022-08-12T17:01:14.544Z","dependency_job_id":null,"html_url":"https://github.com/runkids/vue-column-sortable","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/runkids/vue-column-sortable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runkids%2Fvue-column-sortable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runkids%2Fvue-column-sortable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runkids%2Fvue-column-sortable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runkids%2Fvue-column-sortable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/runkids","download_url":"https://codeload.github.com/runkids/vue-column-sortable/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runkids%2Fvue-column-sortable/sbom","scorecard":{"id":789804,"data":{"date":"2025-08-11","repo":{"name":"github.com/runkids/vue-column-sortable","commit":"f8943b3f52bc75fcbd3b4b6e033002dfda5293eb"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.1,"checks":[{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Code-Review","score":3,"reason":"Found 1/3 approved changesets -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"20 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-cwfw-4gq5-mrqx","Warn: Project is vulnerable to: GHSA-g95f-p29q-9xw4","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-h9rv-jmmf-4pgx","Warn: Project is vulnerable to: GHSA-hxcc-f52p-wc94","Warn: Project is vulnerable to: GHSA-5j4c-8p2g-v4jx"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T07:11:21.166Z","repository_id":48029677,"created_at":"2025-08-23T07:11:21.166Z","updated_at":"2025-08-23T07:11:21.166Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30085993,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T15:40:14.053Z","status":"ssl_error","status_checked_at":"2026-03-04T15:40:13.655Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["column-sorting","orderby","sort","sortable","sortable-helper","table-sorting","vue","vue-directive"],"created_at":"2026-03-04T16:07:29.057Z","updated_at":"2026-03-04T16:07:29.825Z","avatar_url":"https://github.com/runkids.png","language":"JavaScript","readme":"# vue-column-sortable\n[![vue2](https://img.shields.io/badge/vue-2.x-brightgreen.svg)](https://vuejs.org/) [![npm](https://img.shields.io/npm/v/vue-column-sortable.svg)](https://www.npmjs.com/package/vue-column-sortable) \n\nvue-column-sortable is an data sortable directive for vue.js.\n\n### Demo\n[![Edit Vue Template](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/jvj47rxz33?module=%2Fsrc%2FApp.vue)\n\n### Install\n\n- In ES2015\n  ```Bash\n  npm install vue-column-sortable --save\n  ```\n  ```JavaScript\n  //globally\n  import columnSortable from 'vue-column-sortable'\n  Vue.use(columnSortable)\n\n  //for a single instance\n  import columnSortable from 'vue-column-sortable'\n  new Vue({\n    directives: {columnSortable}\n  })\n  ```\n\n- Direct include\n\n  ```html\n    \u003cscript src=\"https://cdn.jsdelivr.net/npm/vue-column-sortable@0.0.1/dist/vue-column-sortable.js\"\u003e\u003c/script\u003e\n  ```\n\n### Usage\n\n- Step 1\n  - Use v-column-sortable:{ data key } in HTML\n  ```html\n    \u003ctable\u003e\n      \u003cthead\u003e\n        \u003cth v-column-sortable:name\u003eName\u003c/th\u003e\n        \u003cth v-column-sortable:age\u003eAge\u003c/th\u003e\n        .\n        .\n      \u003c/thead\u003e\n    \u003c/table\u003e\n  ```\n- Step 2\n  - copy method: orderBy\n\n  ```javascript\n    new Vue({\n      el: '#app',\n      data: {\n        userArray: [\n          { name: 'John', age: 20 },\n          { name: 'Peter', age: 22 },\n        ]\n      },\n      directives: {columnSortable},\n      methods:{\n        orderBy(sortFn) {\n          // sort your array data like this.userArray\n          this.userArray.sort(sortFn);\n        },\n      }\n    })\n  ```\n  #### Options\n\n  ###### showIcon\n  Default `true`\n  Show sort icon with `fortawesome` svg\n\n  ```javascript\n  Vue.use(columnSortable, {\n    showIcon: false,\n  });\n  ```\n\n### Code Example\n\n\u003cimg src=\"https://github.com/runkids/vue-column-sortable/blob/master/demo/column-sortable.gif?raw=true\"/\u003e\n\n```html\n\u003ctemplate\u003e\n  \u003cdiv class=\"about\"\u003e\n    \u003ctable border=\"1\"\u003e\n      \u003cthead\u003e\n        \u003cth\u003e#\u003c/th\u003e\n        \u003cth v-column-sortable:name\u003eName\u003c/th\u003e\n        \u003cth v-column-sortable:birthday\u003eDate of Birth\u003c/th\u003e\n        \u003cth v-column-sortable:point\u003ePoint\u003c/th\u003e\n        \u003cth v-column-sortable:address.country\u003eCountry\u003c/th\u003e\n        \u003cth v-column-sortable:address.city\u003eCity\u003c/th\u003e\n      \u003c/thead\u003e\n      \u003ctbody\u003e\n        \u003ctr v-for=\"(d,index) in dataArray\" :key=\"index\"\u003e\n          \u003ctd\u003e{{ index+1 }}\u003c/td\u003e\n          \u003ctd\u003e{{ d.name }}\u003c/td\u003e\n          \u003ctd\u003e{{ d.birthday }}\u003c/td\u003e\n          \u003ctd\u003e{{ d.point }}\u003c/td\u003e\n          \u003ctd\u003e{{ d.address.country }}\u003c/td\u003e\n          \u003ctd\u003e{{ d.address.city }}\u003c/td\u003e\n        \u003c/tr\u003e\n      \u003c/tbody\u003e\n    \u003c/table\u003e\n  \u003c/div\u003e\n\u003c/template\u003e\n```\n```javascript\n\u003cscript\u003e\nimport columnSortable from 'vue-column-sortable'\n\nexport default {\n  data() {\n    return {\n      dataArray: [\n        {\n          name: 'Jimmy Rutherford',\n          birthday: '1945-5-6',\n          point: 100,\n          address: {\n            country: 'United States of America',\n            city: 'South Ryann',\n          },\n        },\n        {\n          name: 'Camila Gutmann',\n          birthday: '1950-11-16',\n          point: 230,\n          address: {\n            country: 'Taiwan',\n            city: 'Lake Destinview',\n          },\n        },\n      ],\n    };\n  },\n  methods: {\n    orderBy(fn) {\n      this.dataArray.sort(fn);\n    },\n  },\n  directives: {\n    columnSortable,\n  },\n};\n\u003c/script\u003e\n```\n\n### License\n\nMIT","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunkids%2Fvue-column-sortable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frunkids%2Fvue-column-sortable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunkids%2Fvue-column-sortable/lists"}