{"id":25620776,"url":"https://github.com/codewell/sort-object-array","last_synced_at":"2025-06-17T09:35:38.010Z","repository":{"id":38455059,"uuid":"210532162","full_name":"codewell/sort-object-array","owner":"codewell","description":"Sort an array with objects in javascript","archived":false,"fork":false,"pushed_at":"2023-01-06T02:10:23.000Z","size":433,"stargazers_count":0,"open_issues_count":12,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-22T09:27:21.413Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/codewell.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":"2019-09-24T06:50:19.000Z","updated_at":"2020-07-20T07:47:34.000Z","dependencies_parsed_at":"2023-02-05T02:32:08.311Z","dependency_job_id":null,"html_url":"https://github.com/codewell/sort-object-array","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codewell/sort-object-array","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewell%2Fsort-object-array","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewell%2Fsort-object-array/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewell%2Fsort-object-array/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewell%2Fsort-object-array/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codewell","download_url":"https://codeload.github.com/codewell/sort-object-array/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewell%2Fsort-object-array/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260329213,"owners_count":22992856,"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":[],"created_at":"2025-02-22T07:28:01.422Z","updated_at":"2025-06-17T09:35:37.986Z","avatar_url":"https://github.com/codewell.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @codewell/sort-object-array\nSort an array with objects in JavaScript based on keys\n\n## Installation\n```\nnpm install @codewell/sort-object-array\n```\n\n## Basic usage\n```JavaScript\nimport sortObjectArray from '@codewell/sort-object-array';\n\nconst arr = [{age: 1}, {age: 3}, {age: 2}];\n\nconst sortedArr = sortObjectArray(arr, 'age');\nconst sortedArr2 = sortObjectArray(arr, 'age', true); // Reverse order\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewell%2Fsort-object-array","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodewell%2Fsort-object-array","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewell%2Fsort-object-array/lists"}