{"id":31274160,"url":"https://github.com/moko256/mini_natural_sort_rust","last_synced_at":"2025-09-23T22:39:26.434Z","repository":{"id":309700762,"uuid":"1037230141","full_name":"moko256/mini_natural_sort_rust","owner":"moko256","description":"Simple no-std natural (human-readable) sort crate.","archived":false,"fork":false,"pushed_at":"2025-08-13T09:30:52.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"current","last_synced_at":"2025-08-13T11:27:41.981Z","etag":null,"topics":["natural-sort","rust","rust-lang","sort-order"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/moko256.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-13T09:01:48.000Z","updated_at":"2025-08-13T09:30:05.000Z","dependencies_parsed_at":"2025-08-13T11:27:51.296Z","dependency_job_id":"65b53006-a5fb-4295-9fdb-6315d9472d80","html_url":"https://github.com/moko256/mini_natural_sort_rust","commit_stats":null,"previous_names":["moko256/mini_natural_sort_rust"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/moko256/mini_natural_sort_rust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moko256%2Fmini_natural_sort_rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moko256%2Fmini_natural_sort_rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moko256%2Fmini_natural_sort_rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moko256%2Fmini_natural_sort_rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moko256","download_url":"https://codeload.github.com/moko256/mini_natural_sort_rust/tar.gz/refs/heads/current","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moko256%2Fmini_natural_sort_rust/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276662398,"owners_count":25682029,"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","status":"online","status_checked_at":"2025-09-23T02:00:09.130Z","response_time":73,"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":["natural-sort","rust","rust-lang","sort-order"],"created_at":"2025-09-23T22:39:24.248Z","updated_at":"2025-09-23T22:39:26.422Z","avatar_url":"https://github.com/moko256.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"## mini_natural_sort\r\n\r\nSimple no-std natural (human-readable) sort crate.\r\n\r\n### Examples\r\n\r\n```rust\r\nuse mini_natural_sort::{compare_str_natural, NaturalSortKey};\r\n\r\n// Sorting list by function.\r\nlet mut filenames = [\"b001.txt\", \"b1.txt\", \"b000002.txt\", \"A.txt\", \"a.txt\", \"c.txt\", \"c_copy (1).txt\"];\r\n\r\nfilenames.sort_by(compare_str_natural);\r\n\r\nlet sorted = [\"a.txt\", \"b1.txt\", \"b001.txt\", \"b000002.txt\", \"c.txt\", \"c_copy (1).txt\", \"A.txt\"];\r\nassert_eq!(filenames, sorted);\r\n\r\n// Comparing two strings by struct.\r\nassert!(NaturalSortKey::from(\"0000001\") \u003c NaturalSortKey::from(\"2\"));\r\n```\r\n\r\n### Install\r\n\r\n```toml\r\n[dependencies]\r\nmini_natural_sort = { git = \"https://github.com/moko256/mini_natural_sort_rust.git\", tag = \"v2.0.1\" }\r\n```\r\n\r\n### License\r\n\r\nSPDX-License-Identifier: MIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoko256%2Fmini_natural_sort_rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoko256%2Fmini_natural_sort_rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoko256%2Fmini_natural_sort_rust/lists"}