{"id":22021413,"url":"https://github.com/lamansky/longest-first","last_synced_at":"2026-04-13T06:03:15.387Z","repository":{"id":92611977,"uuid":"120122674","full_name":"lamansky/longest-first","owner":"lamansky","description":"[Node.js] Sorts items in descending order of length.","archived":false,"fork":false,"pushed_at":"2018-02-03T19:33:12.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-04T21:43:19.829Z","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/lamansky.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","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":"2018-02-03T19:30:23.000Z","updated_at":"2018-02-03T19:33:13.000Z","dependencies_parsed_at":"2023-04-29T00:02:30.117Z","dependency_job_id":null,"html_url":"https://github.com/lamansky/longest-first","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"757acad8072164a14a12ce2992e7ffde4a5adb68"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/lamansky/longest-first","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamansky%2Flongest-first","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamansky%2Flongest-first/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamansky%2Flongest-first/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamansky%2Flongest-first/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lamansky","download_url":"https://codeload.github.com/lamansky/longest-first/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamansky%2Flongest-first/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261005861,"owners_count":23095932,"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":"2024-11-30T06:11:50.966Z","updated_at":"2026-04-13T06:03:15.341Z","avatar_url":"https://github.com/lamansky.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# longest-first\n\nSorts items in descending order of length.\n\n## Installation\n\nRequires [Node.js](https://nodejs.org/) 6.0.0 or above.\n\n```bash\nnpm i longest-first\n```\n\n## API\n\nThe module exports a single function.\n\n* **Parameter**: `items` (iterable): Values that should be sorted by their `length` property. (The original iterable is not modified.)\n* **Return Value**: Array\n\n## Example\n\n```javascript\nconst longestFirst = require('longest-first')\n\nlongestFirst(['one', 'two', 'three']) // ['three', 'one', 'two']\n\n// Supports the bind operator\n['test', 'example']::longestFirst() // ['example', 'test']\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flamansky%2Flongest-first","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flamansky%2Flongest-first","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flamansky%2Flongest-first/lists"}