{"id":16923338,"url":"https://github.com/sanichkotikov/sort-array-objects","last_synced_at":"2026-05-19T06:37:36.820Z","repository":{"id":57366219,"uuid":"55832448","full_name":"SanichKotikov/sort-array-objects","owner":"SanichKotikov","description":"Sort an array of objects by one or several properties, and return a new array (~267B minified + gzipped)","archived":false,"fork":false,"pushed_at":"2019-12-08T12:03:09.000Z","size":6,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-21T07:14:46.563Z","etag":null,"topics":["es6-modules","no-dependencies","npm-module","npm-package","typescript","vanillajs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/SanichKotikov.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":"2016-04-09T07:54:34.000Z","updated_at":"2023-03-06T17:09:55.000Z","dependencies_parsed_at":"2022-08-23T19:40:37.093Z","dependency_job_id":null,"html_url":"https://github.com/SanichKotikov/sort-array-objects","commit_stats":null,"previous_names":["cdrpro/sort-array-objects"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/SanichKotikov/sort-array-objects","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SanichKotikov%2Fsort-array-objects","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SanichKotikov%2Fsort-array-objects/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SanichKotikov%2Fsort-array-objects/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SanichKotikov%2Fsort-array-objects/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SanichKotikov","download_url":"https://codeload.github.com/SanichKotikov/sort-array-objects/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SanichKotikov%2Fsort-array-objects/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33204731,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"online","status_checked_at":"2026-05-19T02:00:06.763Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["es6-modules","no-dependencies","npm-module","npm-package","typescript","vanillajs"],"created_at":"2024-10-13T19:58:46.072Z","updated_at":"2026-05-19T06:37:36.803Z","avatar_url":"https://github.com/SanichKotikov.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sort-array-objects\n\nSort an array of objects by one or several properties, and return a new array.\n\nNote: v3 has breaking changes 🔥\n\n## Usage 🖥\n\n```js\nimport sort from 'sort-array-objects';\n\nconst data = [\n  { id: 1, a: 456, b: 635, c: 682 },\n  { id: 2, a: 100, b: 99, c: 333 },\n  { id: 3, a: 100, b: 238, c: 123 },\n];\n\nsort(data, ['a', 'b']);\n// ==\u003e [\n// {\"id\":2,\"a\":100,\"b\":99,\"c\":333},\n// {\"id\":3,\"a\":100,\"b\":238,\"c\":123},\n// {\"id\":1,\"a\":456,\"b\":635,\"c\":682},\n// ]\n\nsort(data, ['a', 'b'], -1);\n// ==\u003e [\n// {\"id\":1,\"a\":456,\"b\":635,\"c\":682},\n// {\"id\":3,\"a\":100,\"b\":238,\"c\":123},\n// {\"id\":2,\"a\":100,\"b\":99,\"c\":333},\n// ]\n```\n\n## Install 🔌\n\n```\n$ npm i -S sort-array-objects\n```\n\n## License 🧾\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanichkotikov%2Fsort-array-objects","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsanichkotikov%2Fsort-array-objects","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanichkotikov%2Fsort-array-objects/lists"}