{"id":25826764,"url":"https://github.com/watchdg/rust-sort","last_synced_at":"2025-09-10T16:41:40.841Z","repository":{"id":48844908,"uuid":"357939053","full_name":"WatchDG/rust-sort","owner":"WatchDG","description":"sort algorithms","archived":false,"fork":false,"pushed_at":"2025-08-10T19:43:22.000Z","size":26,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-10T21:19:32.829Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/WatchDG.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":"2021-04-14T14:43:23.000Z","updated_at":"2022-12-28T11:42:42.000Z","dependencies_parsed_at":"2022-08-31T13:02:17.625Z","dependency_job_id":null,"html_url":"https://github.com/WatchDG/rust-sort","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/WatchDG/rust-sort","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WatchDG%2Frust-sort","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WatchDG%2Frust-sort/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WatchDG%2Frust-sort/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WatchDG%2Frust-sort/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WatchDG","download_url":"https://codeload.github.com/WatchDG/rust-sort/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WatchDG%2Frust-sort/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274487702,"owners_count":25294580,"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-10T02:00:12.551Z","response_time":83,"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":[],"created_at":"2025-02-28T15:44:48.851Z","updated_at":"2025-09-10T16:41:40.804Z","avatar_url":"https://github.com/WatchDG.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rust-sort\n\nsort algorithms\n\n## exchange sorts\n\n### bubble sort\n\n```rust\nextern crate sort;\n\nuse sort::bubble_sort;\n\nfn main() {\n    let mut data = vec![5, 4, 3, 2, 1];\n    bubble_sort(\u0026mut data);\n    assert_eq!(data, [1, 2, 3, 4, 5]);\n}\n```\n\n### quicksort\n\n```rust\nextern crate sort;\n\nuse sort::quicksort;\n\nfn main() {\n    let mut data = vec![5, 4, 3, 2, 1];\n    quicksort(\u0026mut data);\n    assert_eq!(data, [1, 2, 3, 4, 5]);\n}\n```\n\n## selection sorts\n\n### selection sort\n\n```rust\nextern crate sort;\n\nuse sort::selection_sort;\n\nfn main() {\n    let mut data = vec![5, 4, 3, 2, 1];\n    selection_sort(\u0026mut data);\n    assert_eq!(data, [1, 2, 3, 4, 5]);\n}\n```\n\n### heapsort\n\n```rust\nextern crate sort;\n\nuse sort::heapsort;\n\nfn main() {\n    let mut data = vec![5, 4, 3, 2, 1];\n    heapsort(\u0026mut data);\n    assert_eq!(data, [1, 2, 3, 4, 5]);\n}\n```\n\n## insertion sorts\n\n### insertion sort\n\n```rust\nextern crate sort;\n\nuse sort::insertion_sort;\n\nfn main() {\n    let mut data = vec![5, 4, 3, 2, 1];\n    insertion_sort(\u0026mut data);\n    assert_eq!(data, [1, 2, 3, 4, 5]);\n}\n```\n\n## merge sorts\n\n### merge sort\n\n```rust\nextern crate sort;\n\nuse sort::merge_sort;\n\nfn main() {\n    let mut data = vec![5, 4, 3, 2, 1];\n    let result = merge_sort(\u0026mut data);\n    assert_eq!(result, [1, 2, 3, 4, 5]);\n}\n```\n\n## hybrid sorts\n\n### introsort\n\n```rust\nextern crate sort;\n\nuse sort::introsort;\n\nfn main() {\n    let mut data = vec![5, 4, 3, 2, 1];\n    introsort(\u0026mut data);\n    assert_eq!(data, [1, 2, 3, 4, 5]);\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwatchdg%2Frust-sort","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwatchdg%2Frust-sort","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwatchdg%2Frust-sort/lists"}