{"id":412,"name":null,"description":"Natural sort algorithm","url":"https://github.com/public-law/naturally","last_synced_at":"2026-05-01T02:00:33.603Z","repository":{"id":5849049,"uuid":"7065608","full_name":"public-law/naturally","owner":"public-law","description":"Natural sort algorithm","archived":false,"fork":false,"pushed_at":"2025-06-14T23:07:17.000Z","size":117,"stargazers_count":120,"open_issues_count":5,"forks_count":20,"subscribers_count":4,"default_branch":"master","last_synced_at":"2026-04-14T03:09:34.568Z","etag":null,"topics":["array-comparison","ruby","sort","sort-order"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/public-law.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2012-12-08T08:42:47.000Z","updated_at":"2025-09-23T21:57:43.000Z","dependencies_parsed_at":"2024-06-02T22:24:59.673Z","dependency_job_id":"f4d4f48c-96a3-4060-b350-dfea2e4ef13b","html_url":"https://github.com/public-law/naturally","commit_stats":{"total_commits":106,"total_committers":14,"mean_commits":7.571428571428571,"dds":"0.21698113207547165","last_synced_commit":"c884159e88a48bbea258d62818a21aee588adbaf"},"previous_names":["public-law/naturally","dogweather/naturally"],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/public-law/naturally","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/public-law","download_url":"https://codeload.github.com/public-law/naturally/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31899986,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"ssl_error","status_checked_at":"2026-04-16T18:21:47.142Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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"}},"owner":{"login":"public-law","name":"Public.Law","uuid":"32751043","kind":"organization","description":"Law is code; open-source it","email":"hello@public.law","website":"https://public.law","location":"Denver, CO","twitter":"law_is_code","company":null,"icon_url":"https://avatars.githubusercontent.com/u/32751043?v=4","repositories_count":26,"last_synced_at":"2025-10-14T14:44:47.464Z","metadata":{"has_sponsors_listing":true},"html_url":"https://github.com/public-law","funding_links":["https://github.com/sponsors/public-law"],"total_stars":577,"followers":47,"following":0,"created_at":"2022-11-08T09:00:54.366Z","updated_at":"2025-10-14T14:44:47.464Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/public-law","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/public-law/repositories"},"packages":[{"id":12280788,"name":"naturally","ecosystem":"rubygems","description":"Natural Sorting with support for legal numbering, course numbers, and other number/letter mixes.","homepage":"http://github.com/public-law/naturally","licenses":"MIT","normalized_licenses":["MIT"],"repository_url":"https://github.com/public-law/naturally","keywords_array":[],"namespace":null,"versions_count":22,"first_release_published_at":"2012-12-08T08:16:52.355Z","latest_release_published_at":"2025-06-11T22:04:46.550Z","latest_release_number":"2.3.0","last_synced_at":"2026-04-26T00:30:59.627Z","created_at":"2025-10-07T04:32:50.999Z","updated_at":"2026-04-26T00:31:17.493Z","registry_url":"https://gem.coop/gems/naturally","install_command":"gem install naturally -s https://gem.coop","documentation_url":"http://www.rubydoc.info/gems/naturally/","metadata":{"funding":null},"repo_metadata":{"id":5849049,"uuid":"7065608","full_name":"public-law/naturally","owner":"public-law","description":"Natural sort algorithm","archived":false,"fork":false,"pushed_at":"2025-06-14T23:07:17.000Z","size":117,"stargazers_count":120,"open_issues_count":5,"forks_count":20,"subscribers_count":4,"default_branch":"master","last_synced_at":"2026-04-14T03:09:34.568Z","etag":null,"topics":["array-comparison","ruby","sort","sort-order"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/public-law.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2012-12-08T08:42:47.000Z","updated_at":"2025-09-23T21:57:43.000Z","dependencies_parsed_at":"2024-06-02T22:24:59.673Z","dependency_job_id":"f4d4f48c-96a3-4060-b350-dfea2e4ef13b","html_url":"https://github.com/public-law/naturally","commit_stats":{"total_commits":106,"total_committers":14,"mean_commits":7.571428571428571,"dds":"0.21698113207547165","last_synced_commit":"c884159e88a48bbea258d62818a21aee588adbaf"},"previous_names":["public-law/naturally","dogweather/naturally"],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/public-law/naturally","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/public-law","download_url":"https://codeload.github.com/public-law/naturally/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31899986,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"ssl_error","status_checked_at":"2026-04-16T18:21:47.142Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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"},"owner_record":{"login":"public-law","name":"Public.Law","uuid":"32751043","kind":"organization","description":"Law is code; open-source it","email":"hello@public.law","website":"https://public.law","location":"Denver, CO","twitter":"law_is_code","company":null,"icon_url":"https://avatars.githubusercontent.com/u/32751043?v=4","repositories_count":26,"last_synced_at":"2025-10-14T14:44:47.464Z","metadata":{"has_sponsors_listing":true},"html_url":"https://github.com/public-law","funding_links":["https://github.com/sponsors/public-law"],"total_stars":577,"followers":47,"following":0,"created_at":"2022-11-08T09:00:54.366Z","updated_at":"2025-10-14T14:44:47.464Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/public-law","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/public-law/repositories"},"tags":[{"name":"v2.3.0","sha":"895ed075072d56f142ae66f53764abe12ec1ca79","kind":"tag","published_at":"2025-06-11T22:04:58.000Z","download_url":"https://codeload.github.com/public-law/naturally/tar.gz/v2.3.0","html_url":"https://github.com/public-law/naturally/releases/tag/v2.3.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/public-law/naturally@v2.3.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/tags/v2.3.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/tags/v2.3.0/manifests"},{"name":"v2.2.2","sha":"ed3bf0f2a04b8cccbaacf9a2c6f02d948e6f1c66","kind":"tag","published_at":"2025-06-08T04:34:30.000Z","download_url":"https://codeload.github.com/public-law/naturally/tar.gz/v2.2.2","html_url":"https://github.com/public-law/naturally/releases/tag/v2.2.2","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/public-law/naturally@v2.2.2","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/tags/v2.2.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/tags/v2.2.2/manifests"},{"name":"v2.2.1","sha":"8c9f7da3f9535942a4efac812381fe1baac3f9cc","kind":"tag","published_at":"2021-01-18T00:45:39.000Z","download_url":"https://codeload.github.com/public-law/naturally/tar.gz/v2.2.1","html_url":"https://github.com/public-law/naturally/releases/tag/v2.2.1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/public-law/naturally@v2.2.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/tags/v2.2.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/tags/v2.2.1/manifests"},{"name":"v2.2.0","sha":"ef298880bcca8afad794323d788510065e0a7791","kind":"tag","published_at":"2018-06-03T09:51:55.000Z","download_url":"https://codeload.github.com/public-law/naturally/tar.gz/v2.2.0","html_url":"https://github.com/public-law/naturally/releases/tag/v2.2.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/public-law/naturally@v2.2.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/tags/v2.2.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/tags/v2.2.0/manifests"},{"name":"v2.1.0","sha":"d51466b1563ba8e1955755fe2b8d136259110aa1","kind":"tag","published_at":"2015-10-30T05:50:01.000Z","download_url":"https://codeload.github.com/public-law/naturally/tar.gz/v2.1.0","html_url":"https://github.com/public-law/naturally/releases/tag/v2.1.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/public-law/naturally@v2.1.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/tags/v2.1.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/tags/v2.1.0/manifests"},{"name":"v2.0.0","sha":"e6b356d8b3cef4b1f69763c242ffc2980fe7445c","kind":"tag","published_at":"2015-10-30T05:32:48.000Z","download_url":"https://codeload.github.com/public-law/naturally/tar.gz/v2.0.0","html_url":"https://github.com/public-law/naturally/releases/tag/v2.0.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/public-law/naturally@v2.0.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/tags/v2.0.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/tags/v2.0.0/manifests"},{"name":"v1.5.0","sha":"e40ea16056d8edd9cfca8ce4e484447ee439c21d","kind":"tag","published_at":"2015-10-30T05:10:25.000Z","download_url":"https://codeload.github.com/public-law/naturally/tar.gz/v1.5.0","html_url":"https://github.com/public-law/naturally/releases/tag/v1.5.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/public-law/naturally@v1.5.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/tags/v1.5.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/tags/v1.5.0/manifests"},{"name":"v1.4.0","sha":"991040e0b5430dce2b43c3f0aa1e5d761a1ab076","kind":"tag","published_at":"2015-08-04T06:11:54.000Z","download_url":"https://codeload.github.com/public-law/naturally/tar.gz/v1.4.0","html_url":"https://github.com/public-law/naturally/releases/tag/v1.4.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/public-law/naturally@v1.4.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/tags/v1.4.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/tags/v1.4.0/manifests"},{"name":"v1.3.2","sha":"eaff54af3beca0c1e6c4742108c558dd408fbf70","kind":"tag","published_at":"2015-03-11T03:57:30.000Z","download_url":"https://codeload.github.com/public-law/naturally/tar.gz/v1.3.2","html_url":"https://github.com/public-law/naturally/releases/tag/v1.3.2","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/public-law/naturally@v1.3.2","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/tags/v1.3.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/tags/v1.3.2/manifests"},{"name":"v1.3.1","sha":"318467564c53f32a39d44d4904705f49b4e86b95","kind":"tag","published_at":"2014-05-07T18:20:34.000Z","download_url":"https://codeload.github.com/public-law/naturally/tar.gz/v1.3.1","html_url":"https://github.com/public-law/naturally/releases/tag/v1.3.1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/public-law/naturally@v1.3.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/tags/v1.3.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/tags/v1.3.1/manifests"},{"name":"v1.3.0","sha":"cf6d065cbad9d80bac008c882da75a068ef178e1","kind":"tag","published_at":"2014-03-28T07:45:02.000Z","download_url":"https://codeload.github.com/public-law/naturally/tar.gz/v1.3.0","html_url":"https://github.com/public-law/naturally/releases/tag/v1.3.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/public-law/naturally@v1.3.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/tags/v1.3.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/tags/v1.3.0/manifests"},{"name":"v1.2.1","sha":"a78dc8c90935fff3ef4449d9c8b23de138af43b0","kind":"tag","published_at":"2014-03-27T06:39:35.000Z","download_url":"https://codeload.github.com/public-law/naturally/tar.gz/v1.2.1","html_url":"https://github.com/public-law/naturally/releases/tag/v1.2.1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/public-law/naturally@v1.2.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/tags/v1.2.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/tags/v1.2.1/manifests"},{"name":"v1.2.0","sha":"a148a82cc805513b033d1301bf3bb77dcd3e7caf","kind":"tag","published_at":"2014-03-27T06:32:51.000Z","download_url":"https://codeload.github.com/public-law/naturally/tar.gz/v1.2.0","html_url":"https://github.com/public-law/naturally/releases/tag/v1.2.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/public-law/naturally@v1.2.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/tags/v1.2.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/tags/v1.2.0/manifests"},{"name":"v1.1.0","sha":"7006535de1f575f421df1b21415291da1de04d83","kind":"tag","published_at":"2014-01-18T10:40:56.000Z","download_url":"https://codeload.github.com/public-law/naturally/tar.gz/v1.1.0","html_url":"https://github.com/public-law/naturally/releases/tag/v1.1.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/public-law/naturally@v1.1.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/tags/v1.1.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/tags/v1.1.0/manifests"},{"name":"v1.0.5","sha":"318d0bb5dff2b86ea940ade987bbfcad3be82b60","kind":"tag","published_at":"2014-01-02T07:10:57.000Z","download_url":"https://codeload.github.com/public-law/naturally/tar.gz/v1.0.5","html_url":"https://github.com/public-law/naturally/releases/tag/v1.0.5","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/public-law/naturally@v1.0.5","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/tags/v1.0.5","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/tags/v1.0.5/manifests"},{"name":"v1.0.4","sha":"11b0083b9298bc84645cb8b7441d0b60777df44e","kind":"tag","published_at":"2013-09-19T02:00:20.000Z","download_url":"https://codeload.github.com/public-law/naturally/tar.gz/v1.0.4","html_url":"https://github.com/public-law/naturally/releases/tag/v1.0.4","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/public-law/naturally@v1.0.4","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/tags/v1.0.4","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/tags/v1.0.4/manifests"}]},"repo_metadata_updated_at":"2026-04-26T00:31:17.472Z","dependent_packages_count":0,"downloads":120478387,"downloads_period":"total","dependent_repos_count":0,"rankings":{"downloads":0.23356148830570603,"dependent_repos_count":0.0,"dependent_packages_count":0.0,"stargazers_count":null,"forks_count":null,"docker_downloads_count":0.6331030157545875,"average":0.21666612601507337},"purl":"pkg:gem/naturally?repository_url=https://gem.coop","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/rubygems/naturally","docker_dependents_count":499,"docker_downloads_count":42437883,"usage_url":"https://repos.ecosyste.ms/usage/rubygems/naturally","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/rubygems/naturally/dependencies","status":null,"funding_links":["https://github.com/sponsors/public-law"],"critical":null,"issue_metadata":{"last_synced_at":"2026-03-18T05:00:18.579Z","issues_count":9,"pull_requests_count":28,"avg_time_to_close_issue":54783411.166666664,"avg_time_to_close_pull_request":8995185.923076924,"issues_closed_count":6,"pull_requests_closed_count":26,"pull_request_authors_count":13,"issue_authors_count":8,"avg_comments_per_issue":2.2222222222222223,"avg_comments_per_pull_request":1.1071428571428572,"merged_pull_requests_count":22,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":1,"past_year_pull_requests_count":4,"past_year_avg_time_to_close_issue":582.0,"past_year_avg_time_to_close_pull_request":171.5,"past_year_issues_closed_count":1,"past_year_pull_requests_closed_count":4,"past_year_pull_request_authors_count":1,"past_year_issue_authors_count":1,"past_year_avg_comments_per_issue":0.0,"past_year_avg_comments_per_pull_request":0.0,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":4,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/issues","maintainers":[{"login":"dogweather","count":18,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/dogweather"}],"active_maintainers":[{"login":"dogweather","count":9,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/dogweather"}]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/gem.coop/packages/naturally/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/gem.coop/packages/naturally/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/gem.coop/packages/naturally/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/gem.coop/packages/naturally/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/gem.coop/packages/naturally/codemeta","maintainers":[{"uuid":"47955","login":"dogweather","name":null,"email":null,"url":null,"packages_count":12,"html_url":"https://gem.coop/profiles/dogweather","role":null,"created_at":"2025-10-07T23:59:26.810Z","updated_at":"2025-10-07T23:59:26.810Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/gem.coop/maintainers/dogweather/packages"}],"registry":{"name":"gem.coop","url":"https://gem.coop","ecosystem":"rubygems","default":false,"packages_count":190306,"maintainers_count":67453,"namespaces_count":0,"keywords_count":0,"github":"gem-coop","metadata":{"funded_packages_count":6507},"icon_url":"https://github.com/gem-coop.png","created_at":"2025-10-06T17:24:20.932Z","updated_at":"2026-04-03T06:45:05.763Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/gem.coop/packages","maintainers_url":"https://packages.ecosyste.ms/api/v1/registries/gem.coop/maintainers","namespaces_url":"https://packages.ecosyste.ms/api/v1/registries/gem.coop/namespaces"}},{"id":260848,"name":"naturally","ecosystem":"rubygems","description":"Natural Sorting with support for legal numbering, course numbers, and other number/letter mixes.","homepage":"http://github.com/public-law/naturally","licenses":"MIT","normalized_licenses":["MIT"],"repository_url":"https://github.com/public-law/naturally","keywords_array":[],"namespace":null,"versions_count":22,"first_release_published_at":"2012-12-08T08:16:52.355Z","latest_release_published_at":"2025-06-11T22:04:46.550Z","latest_release_number":"2.3.0","last_synced_at":"2026-04-24T23:01:30.104Z","created_at":"2022-04-06T05:19:23.272Z","updated_at":"2026-04-24T23:01:30.104Z","registry_url":"https://rubygems.org/gems/naturally","install_command":"gem install naturally -s https://rubygems.org","documentation_url":"http://www.rubydoc.info/gems/naturally/","metadata":{"funding":null},"repo_metadata":{"id":5849049,"uuid":"7065608","full_name":"dogweather/naturally","owner":"dogweather","description":"Natural sort algorithm","archived":false,"fork":false,"pushed_at":"2023-10-17T00:02:12.000Z","size":83,"stargazers_count":86,"open_issues_count":7,"forks_count":20,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-04-26T05:20:53.376Z","etag":null,"topics":["array-comparison","ruby","sort","sort-order"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/dogweather.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":"2012-12-08T08:42:47.000Z","updated_at":"2024-06-02T22:14:54.459Z","dependencies_parsed_at":"2024-06-02T22:24:59.673Z","dependency_job_id":null,"html_url":"https://github.com/dogweather/naturally","commit_stats":{"total_commits":106,"total_committers":14,"mean_commits":7.571428571428571,"dds":"0.21698113207547165","last_synced_commit":"c884159e88a48bbea258d62818a21aee588adbaf"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogweather%2Fnaturally","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogweather%2Fnaturally/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogweather%2Fnaturally/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogweather%2Fnaturally/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dogweather","download_url":"https://codeload.github.com/dogweather/naturally/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219862797,"owners_count":16553934,"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"},"owner_record":{"login":"dogweather","name":"Robb Shecter","uuid":"150670","kind":"user","description":"Open-data hacker","email":"","website":"https://dogweather.dev","location":"Denver, CO","twitter":"law_is_code","company":"@public-law ","icon_url":"https://avatars.githubusercontent.com/u/150670?u=6ba24be5a99a1d236627339d228160cf463b44f9\u0026v=4","repositories_count":72,"last_synced_at":"2024-04-15T22:02:00.647Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/dogweather","funding_links":[],"total_stars":832,"followers":219,"following":87,"created_at":"2022-11-02T16:42:08.294Z","updated_at":"2024-04-15T22:02:17.840Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dogweather","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dogweather/repositories"},"tags":[{"name":"v2.2.1","sha":"8c9f7da3f9535942a4efac812381fe1baac3f9cc","kind":"tag","published_at":"2021-01-18T00:45:39.000Z","download_url":"https://codeload.github.com/dogweather/naturally/tar.gz/v2.2.1","html_url":"https://github.com/dogweather/naturally/releases/tag/v2.2.1","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogweather%2Fnaturally/tags/v2.2.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogweather%2Fnaturally/tags/v2.2.1/manifests"},{"name":"v2.2.0","sha":"ef298880bcca8afad794323d788510065e0a7791","kind":"tag","published_at":"2018-06-03T09:51:55.000Z","download_url":"https://codeload.github.com/dogweather/naturally/tar.gz/v2.2.0","html_url":"https://github.com/dogweather/naturally/releases/tag/v2.2.0","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogweather%2Fnaturally/tags/v2.2.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogweather%2Fnaturally/tags/v2.2.0/manifests"},{"name":"v2.1.0","sha":"d51466b1563ba8e1955755fe2b8d136259110aa1","kind":"tag","published_at":"2015-10-30T05:50:01.000Z","download_url":"https://codeload.github.com/dogweather/naturally/tar.gz/v2.1.0","html_url":"https://github.com/dogweather/naturally/releases/tag/v2.1.0","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogweather%2Fnaturally/tags/v2.1.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogweather%2Fnaturally/tags/v2.1.0/manifests"},{"name":"v2.0.0","sha":"e6b356d8b3cef4b1f69763c242ffc2980fe7445c","kind":"tag","published_at":"2015-10-30T05:32:48.000Z","download_url":"https://codeload.github.com/dogweather/naturally/tar.gz/v2.0.0","html_url":"https://github.com/dogweather/naturally/releases/tag/v2.0.0","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogweather%2Fnaturally/tags/v2.0.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogweather%2Fnaturally/tags/v2.0.0/manifests"},{"name":"v1.5.0","sha":"e40ea16056d8edd9cfca8ce4e484447ee439c21d","kind":"tag","published_at":"2015-10-30T05:10:25.000Z","download_url":"https://codeload.github.com/dogweather/naturally/tar.gz/v1.5.0","html_url":"https://github.com/dogweather/naturally/releases/tag/v1.5.0","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogweather%2Fnaturally/tags/v1.5.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogweather%2Fnaturally/tags/v1.5.0/manifests"},{"name":"v1.4.0","sha":"991040e0b5430dce2b43c3f0aa1e5d761a1ab076","kind":"tag","published_at":"2015-08-04T06:11:54.000Z","download_url":"https://codeload.github.com/dogweather/naturally/tar.gz/v1.4.0","html_url":"https://github.com/dogweather/naturally/releases/tag/v1.4.0","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogweather%2Fnaturally/tags/v1.4.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogweather%2Fnaturally/tags/v1.4.0/manifests"},{"name":"v1.3.2","sha":"eaff54af3beca0c1e6c4742108c558dd408fbf70","kind":"tag","published_at":"2015-03-11T03:57:30.000Z","download_url":"https://codeload.github.com/dogweather/naturally/tar.gz/v1.3.2","html_url":"https://github.com/dogweather/naturally/releases/tag/v1.3.2","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogweather%2Fnaturally/tags/v1.3.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogweather%2Fnaturally/tags/v1.3.2/manifests"},{"name":"v1.3.1","sha":"318467564c53f32a39d44d4904705f49b4e86b95","kind":"tag","published_at":"2014-05-07T18:20:34.000Z","download_url":"https://codeload.github.com/dogweather/naturally/tar.gz/v1.3.1","html_url":"https://github.com/dogweather/naturally/releases/tag/v1.3.1","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogweather%2Fnaturally/tags/v1.3.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogweather%2Fnaturally/tags/v1.3.1/manifests"},{"name":"v1.3.0","sha":"cf6d065cbad9d80bac008c882da75a068ef178e1","kind":"tag","published_at":"2014-03-28T07:45:02.000Z","download_url":"https://codeload.github.com/dogweather/naturally/tar.gz/v1.3.0","html_url":"https://github.com/dogweather/naturally/releases/tag/v1.3.0","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogweather%2Fnaturally/tags/v1.3.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogweather%2Fnaturally/tags/v1.3.0/manifests"},{"name":"v1.2.1","sha":"a78dc8c90935fff3ef4449d9c8b23de138af43b0","kind":"tag","published_at":"2014-03-27T06:39:35.000Z","download_url":"https://codeload.github.com/dogweather/naturally/tar.gz/v1.2.1","html_url":"https://github.com/dogweather/naturally/releases/tag/v1.2.1","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogweather%2Fnaturally/tags/v1.2.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogweather%2Fnaturally/tags/v1.2.1/manifests"},{"name":"v1.2.0","sha":"a148a82cc805513b033d1301bf3bb77dcd3e7caf","kind":"tag","published_at":"2014-03-27T06:32:51.000Z","download_url":"https://codeload.github.com/dogweather/naturally/tar.gz/v1.2.0","html_url":"https://github.com/dogweather/naturally/releases/tag/v1.2.0","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogweather%2Fnaturally/tags/v1.2.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogweather%2Fnaturally/tags/v1.2.0/manifests"},{"name":"v1.1.0","sha":"7006535de1f575f421df1b21415291da1de04d83","kind":"tag","published_at":"2014-01-18T10:40:56.000Z","download_url":"https://codeload.github.com/dogweather/naturally/tar.gz/v1.1.0","html_url":"https://github.com/dogweather/naturally/releases/tag/v1.1.0","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogweather%2Fnaturally/tags/v1.1.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogweather%2Fnaturally/tags/v1.1.0/manifests"},{"name":"v1.0.5","sha":"318d0bb5dff2b86ea940ade987bbfcad3be82b60","kind":"tag","published_at":"2014-01-02T07:10:57.000Z","download_url":"https://codeload.github.com/dogweather/naturally/tar.gz/v1.0.5","html_url":"https://github.com/dogweather/naturally/releases/tag/v1.0.5","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogweather%2Fnaturally/tags/v1.0.5","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogweather%2Fnaturally/tags/v1.0.5/manifests"},{"name":"v1.0.4","sha":"11b0083b9298bc84645cb8b7441d0b60777df44e","kind":"tag","published_at":"2013-09-19T02:00:20.000Z","download_url":"https://codeload.github.com/dogweather/naturally/tar.gz/v1.0.4","html_url":"https://github.com/dogweather/naturally/releases/tag/v1.0.4","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogweather%2Fnaturally/tags/v1.0.4","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogweather%2Fnaturally/tags/v1.0.4/manifests"}]},"repo_metadata_updated_at":"2024-09-30T04:55:49.396Z","dependent_packages_count":18,"downloads":120450716,"downloads_period":"total","dependent_repos_count":20145,"rankings":{"downloads":0.31612047144880184,"dependent_repos_count":0.25311938983731225,"dependent_packages_count":1.1819671948350263,"stargazers_count":5.839029448824165,"forks_count":6.060927063703572,"docker_downloads_count":0.7738539935995361,"average":2.404169593708069},"purl":"pkg:gem/naturally","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/rubygems/naturally","docker_dependents_count":499,"docker_downloads_count":42437883,"usage_url":"https://repos.ecosyste.ms/usage/rubygems/naturally","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/rubygems/naturally/dependencies","status":null,"funding_links":[],"critical":true,"issue_metadata":{"last_synced_at":"2024-09-30T02:32:35.780Z","issues_count":8,"pull_requests_count":24,"avg_time_to_close_issue":12187349.25,"avg_time_to_close_pull_request":4532250.238095238,"issues_closed_count":4,"pull_requests_closed_count":21,"pull_request_authors_count":13,"issue_authors_count":7,"avg_comments_per_issue":2.375,"avg_comments_per_pull_request":1.25,"merged_pull_requests_count":18,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":0,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogweather%2Fnaturally/issues","maintainers":[{"login":"dogweather","count":9,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/dogweather"}],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/rubygems.org/packages/naturally/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/rubygems.org/packages/naturally/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/rubygems.org/packages/naturally/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/rubygems.org/packages/naturally/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/rubygems.org/packages/naturally/codemeta","maintainers":[{"uuid":"47955","login":"dogweather","name":null,"email":null,"url":null,"packages_count":12,"html_url":"https://rubygems.org/profiles/dogweather","role":null,"created_at":"2022-11-09T09:42:13.485Z","updated_at":"2022-11-09T09:42:13.485Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/rubygems.org/maintainers/dogweather/packages"}],"registry":{"name":"rubygems.org","url":"https://rubygems.org","ecosystem":"rubygems","default":true,"packages_count":205454,"maintainers_count":68445,"namespaces_count":0,"keywords_count":0,"github":"rubygems","metadata":{"funded_packages_count":7260},"icon_url":"https://github.com/rubygems.png","created_at":"2022-04-04T15:19:23.446Z","updated_at":"2026-04-03T06:42:17.024Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/rubygems.org/packages","maintainers_url":"https://packages.ecosyste.ms/api/v1/registries/rubygems.org/maintainers","namespaces_url":"https://packages.ecosyste.ms/api/v1/registries/rubygems.org/namespaces"}}],"commits":{"id":10260644,"full_name":"public-law/naturally","default_branch":"master","total_commits":123,"total_committers":13,"total_bot_commits":0,"total_bot_committers":0,"mean_commits":9.461538461538462,"dds":0.3252032520325203,"past_year_total_commits":13,"past_year_total_committers":1,"past_year_total_bot_commits":0,"past_year_total_bot_committers":0,"past_year_mean_commits":13.0,"past_year_dds":0.0,"last_synced_at":"2026-04-28T08:10:44.302Z","last_synced_commit":"8f137f88d0dbb01c68bdbcaf31fa46c9fbd7fe66","created_at":"2025-06-09T03:02:07.163Z","updated_at":"2026-04-28T08:10:42.396Z","committers":[{"name":"Robb Shecter","email":"robb@weblaws.org","login":null,"count":83},{"name":"Robb Shecter","email":"robb@public.law","login":"dogweather","count":27},{"name":"Penn Taylor","email":"rpenn3@gmail.com","login":"penntaylor","count":2},{"name":"Anton Rieder","email":"1301152+aried3r","login":"aried3r","count":2},{"name":"Theodor Tonum","email":"theodor@tonum.no","login":"theodorton","count":1},{"name":"Santiago Castro","email":"santi.1410@hotmail.com","login":"bryant1410","count":1},{"name":"Pierre Yager","email":"pierre@levosgien.net","login":"zedalaye","count":1},{"name":"KD","email":"kd.engineer@yahoo.co.in","login":"kuldeepaggarwal","count":1},{"name":"Joshua Huber","email":"jhuber@blockbridge.com","login":"uberjay","count":1},{"name":"Joan Roig","email":"roigarderiu@gmail.com","login":"novito","count":1},{"name":"Jake Heimark","email":"jheimark@me.com","login":"hmk","count":1},{"name":"Ivan","email":"loriowar@gmail.com","login":"Loriowar","count":1},{"name":"Jeff Olfert","email":"jolfert@fiduciarybenchmarks.com","login":null,"count":1}],"past_year_committers":[{"name":"Robb Shecter","email":"robb@public.law","login":"dogweather","count":13}],"commits_url":"https://commits.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/commits","host":{"name":"GitHub","url":"https://github.com","kind":"github","last_synced_at":"2026-04-28T00:00:07.369Z","repositories_count":6220996,"commits_count":900029914,"contributors_count":34892855,"owners_count":1146655,"icon_url":"https://github.com/github.png","host_url":"https://commits.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://commits.ecosyste.ms/api/v1/hosts/GitHub/repositories"}},"issues_stats":{"full_name":"public-law/naturally","html_url":"https://github.com/public-law/naturally","last_synced_at":"2026-03-18T05:00:18.579Z","status":"error","issues_count":9,"pull_requests_count":28,"avg_time_to_close_issue":54783411.166666664,"avg_time_to_close_pull_request":8995185.923076924,"issues_closed_count":6,"pull_requests_closed_count":26,"pull_request_authors_count":13,"issue_authors_count":8,"avg_comments_per_issue":2.2222222222222223,"avg_comments_per_pull_request":1.1071428571428572,"merged_pull_requests_count":22,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":1,"past_year_pull_requests_count":4,"past_year_avg_time_to_close_issue":582.0,"past_year_avg_time_to_close_pull_request":171.5,"past_year_issues_closed_count":1,"past_year_pull_requests_closed_count":4,"past_year_pull_request_authors_count":1,"past_year_issue_authors_count":1,"past_year_avg_comments_per_issue":0.0,"past_year_avg_comments_per_pull_request":0.0,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":4,"created_at":"2025-06-09T03:02:07.918Z","updated_at":"2026-03-18T05:00:18.579Z","repository_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally","issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Fnaturally/issues","issue_labels_count":{"enhancement":2},"pull_request_labels_count":{},"issue_author_associations_count":{"NONE":7,"MEMBER":1,"CONTRIBUTOR":1},"pull_request_author_associations_count":{"MEMBER":17,"CONTRIBUTOR":14,"NONE":2},"issue_authors":{"schlick":2,"jeropaul":1,"bibendi":1,"evanlemke":1,"Kris-LIBIS":1,"dogweather":1,"zedalaye":1,"gucki":1},"pull_request_authors":{"dogweather":17,"aried3r":5,"theodorton":1,"evanlemke":1,"kuldeepaggarwal":1,"bryant1410":1,"uberjay":1,"Loriowar":1,"Fonsan":1,"hmk":1,"penntaylor":1,"zedalaye":1,"novito":1},"host":{"name":"GitHub","url":"https://github.com","kind":"github","last_synced_at":"2026-05-01T00:00:07.984Z","repositories_count":14452485,"issues_count":34155617,"pull_requests_count":112014493,"authors_count":11249994,"icon_url":"https://github.com/github.png","host_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories","owners_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/owners","authors_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors"},"past_year_issue_labels_count":{},"past_year_pull_request_labels_count":{},"past_year_issue_author_associations_count":{"MEMBER":1},"past_year_pull_request_author_associations_count":{"MEMBER":8},"past_year_issue_authors":{"dogweather":1},"past_year_pull_request_authors":{"dogweather":8},"maintainers":[{"login":"dogweather","count":18,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/dogweather"}],"active_maintainers":[{"login":"dogweather","count":9,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/dogweather"}]},"events":{"total":{"IssuesEvent":2,"WatchEvent":16,"DeleteEvent":2,"IssueCommentEvent":2,"PushEvent":14,"PullRequestEvent":7,"CreateEvent":4},"last_year":{"IssuesEvent":2,"WatchEvent":16,"DeleteEvent":2,"IssueCommentEvent":2,"PushEvent":14,"PullRequestEvent":7,"CreateEvent":4}},"keywords":["array-comparison","ruby","sort","sort-order"],"dependencies":[{"ecosystem":"rubygems","filepath":"Gemfile","sha":null,"kind":"manifest","created_at":"2022-08-21T00:20:25.599Z","updated_at":"2022-08-21T00:20:25.599Z","repository_link":"https://github.com/public-law/naturally/blob/master/Gemfile","dependencies":[{"id":2197731953,"package_name":"rspec","ecosystem":"rubygems","requirements":"~\u003e 3","direct":true,"kind":"development","optional":false},{"id":2197731954,"package_name":"rake","ecosystem":"rubygems","requirements":"\u003e= 12.3.3","direct":true,"kind":"development","optional":false}]},{"ecosystem":"rubygems","filepath":"naturally.gemspec","sha":null,"kind":"manifest","created_at":"2024-06-02T22:14:52.971Z","updated_at":"2024-06-02T22:14:52.971Z","repository_link":"https://github.com/public-law/naturally/blob/master/naturally.gemspec","dependencies":[]}],"score":26.99513724441519,"created_at":"2024-12-15T21:38:07.984Z","updated_at":"2026-05-01T02:00:33.603Z","avatar_url":"https://github.com/public-law.png","language":"Ruby","monthly_downloads":0,"readme":"# Naturally\n[![Gem Version](https://badge.fury.io/rb/naturally.svg)](https://badge.fury.io/rb/naturally)\n\nNatural (\"version number\") sorting with support for:\n\n* **file names**,\n* **legal document numbering**,\n* **college course codes**, and\n* **Unicode**.\n\nSee Jeff Atwood's [Sorting for Humans: Natural Sort Order](https://blog.codinghorror.com/sorting-for-humans-natural-sort-order/).\n\n\n## Installation\n\n```Shell\n$ gem install naturally\n```\n\n## Usage\n\n### `#sort`\n\n```Ruby\nrequire 'naturally'\n\n# Sort version numbers\nNaturally.sort([\"13.10\", \"13.04\", \"10.10\", \"10.04.4\"])\n          # =\u003e [\"10.04.4\", \"10.10\", \"13.04\", \"13.10\"]\n\n# Sort legal section numbers\nNaturally.sort([\"336\", \"335a\", \"335\", \"335.1\"])\n          # =\u003e [\"335\", \"335.1\", \"335a\", \"336\"]\n```\n\nThe library can also sort an array of objects:\n\n```Ruby\n# Define a new simple object for storing Ubuntu versions\nUbuntuVersion = Struct.new(:name, :version)\n\n# Create an array\nreleases = [\n  UbuntuVersion.new('Saucy Salamander', '13.10'),\n  UbuntuVersion.new('Raring Ringtail',  '13.04'),\n  UbuntuVersion.new('Precise Pangolin', '12.04.4'),\n  UbuntuVersion.new('Maverick Meerkat', '10.10'),\n  UbuntuVersion.new('Quantal Quetzal',  '12.10'),\n  UbuntuVersion.new('Lucid Lynx',       '10.04.4')\n]\n\n# Sort by the version attribute\nNaturally.sort(releases, by: :version)\n\n=\u003e [#\u003cstruct UbuntuVersion name=\"Lucid Lynx\",       version=\"10.04.4\"\u003e,\n    #\u003cstruct UbuntuVersion name=\"Maverick Meerkat\", version=\"10.10\"\u003e,\n    #\u003cstruct UbuntuVersion name=\"Precise Pangolin\", version=\"12.04.4\"\u003e,\n    #\u003cstruct UbuntuVersion name=\"Quantal Quetzal\",  version=\"12.10\"\u003e,\n    #\u003cstruct UbuntuVersion name=\"Raring Ringtail\",  version=\"13.04\"\u003e,\n    #\u003cstruct UbuntuVersion name=\"Saucy Salamander\", version=\"13.10\"\u003e]\n```\n\n[More examples are in the specs](https://github.com/public-law/naturally/blob/master/spec/naturally_spec.rb).\n\n\n### `#sort_filenames`\n\nSorts filenames naturally, treating underscores and dots as separators. Useful for sorting files like images or documents that use numbers, underscores, and dots in their names.\n\n```ruby\nfiles = [\n  'abc_2.tif',\n  'abc_1_a.tif',\n  'abc_1.zzz',\n  'abc_1_xyz.abc',\n  'abc_2a.tif',\n  'abc.2.tif',\n  'abc.1_a.tif',\n  'abc_2.abc',\n  'abc_1_xyz.abc'\n]\nNaturally.sort_filenames(files)\n# =\u003e [\n#   \"abc.1_a.tif\",\n#   \"abc.2.tif\",\n#   \"abc_1.zzz\",\n#   \"abc_1_a.tif\",\n#   \"abc_1_xyz.abc\",\n#   \"abc_1_xyz.abc\",\n#   \"abc_2.abc\",\n#   \"abc_2.tif\",\n#   \"abc_2a.tif\"\n# ]\n```\n\nThis method gives higher priority to dots than underscores, so files like `abc.1_a.tif` will come before `abc.2.tif`.\n\n\n## Implementation Notes\n\nThe algorithm capitalizes on Ruby's array comparison behavior:\nSince each dotted number actually represents a hierarchical \nidentifier, [array comparison](http://ruby-doc.org/core-2.2.1/Array.html#method-i-3C-3D-3E) \nis a natural fit:\n\n\u003e Arrays are compared in an “element-wise” manner; the first element of ary is compared with the first one of other_ary using the \u003c=\u003e operator, then each of the second elements, etc… As soon as the result of any such comparison is non zero (i.e. the two corresponding elements are not equal), that result is returned for the whole array comparison.\n\n\nAnd so, when given input such as,\n\n```ruby\n['1.9', '1.9a', '1.10']\n```\n\n...this module sorts the segmented numbers \nby comparing them in their array forms:\n\n```ruby\n[['1', '9'], ['1', '9a'], ['1', '10']]\n```\n\nFinally, upon actual sort comparison, each of these strings is \nconverted to an array of typed objects. This is to determine the \nsort order between heterogenous (yet ordered) segments such as \n`'9a'` and `'9'`.\n\nThe final nested comparison structure looks like this:\n\n```ruby\n  [\n   [\n     [1], [9]\n   ],\n   [\n     [1], [9, 'a']\n   ],\n   [\n     [1], [10]\n   ]\n  ]\n```\n\n## Related Work\n\n* [ahoward/version_sorter](https://github.com/ahoward/version_sorter), the starting point for the `naturally` gem.\n* [GitHub's Version sorter](https://github.com/github/version_sorter)\n\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","funding_links":[],"readme_doi_urls":[],"works":{},"citation_counts":{},"total_citations":0,"keywords_from_contributors":["activejob","activerecord","mvc"],"project_url":"https://ruby.ecosyste.ms/api/v1/projects/412","html_url":"https://ruby.ecosyste.ms/projects/412"}