{"id":22977238,"url":"https://github.com/ho11ow1/sorting_algorithm","last_synced_at":"2025-04-02T08:23:33.558Z","repository":{"id":263294292,"uuid":"850289728","full_name":"Ho11ow1/Sorting_algorithm","owner":"Ho11ow1","description":"Simple sorting algorithm using 2 for loops and template arguments supporting both Vector and standard[] arrays","archived":false,"fork":false,"pushed_at":"2024-11-17T15:48:43.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-07T23:35:55.607Z","etag":null,"topics":["algorithms","cpp","header-only","sorting","template"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ho11ow1.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}},"created_at":"2024-08-31T11:24:01.000Z","updated_at":"2024-11-17T15:48:47.000Z","dependencies_parsed_at":"2024-11-17T16:39:42.505Z","dependency_job_id":null,"html_url":"https://github.com/Ho11ow1/Sorting_algorithm","commit_stats":null,"previous_names":["ho11ow1/sorting_algorithm"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ho11ow1%2FSorting_algorithm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ho11ow1%2FSorting_algorithm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ho11ow1%2FSorting_algorithm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ho11ow1%2FSorting_algorithm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ho11ow1","download_url":"https://codeload.github.com/Ho11ow1/Sorting_algorithm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246778809,"owners_count":20832253,"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":["algorithms","cpp","header-only","sorting","template"],"created_at":"2024-12-15T00:59:33.196Z","updated_at":"2025-04-02T08:23:33.537Z","avatar_url":"https://github.com/Ho11ow1.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sorting_algorithm\n\nA simple yet effective sorting algorithm in `C++` using templates to support both vectors and arrays.\n\n## Features\n\n* Template-based implementation\n* Two distinct sorting implementations:\n  * `vector`: Specialized for std::vector\n  * `type`: Works with standard arrays\n* Simple selection sort algorithm\n* Header-only implementation\n* Namespace organization for clean code structure\n\n## Usage Example\n```cpp\n#include \"sort.h\"\n\n// Vector sorting example\nvoid vectorExample() \n{\n    std::vector\u003cuint32_t\u003e nums = { 1, 7, 3, 8, 2 };\n    Hollow::vector::sort(nums);\n    \n    for (int i = 0; i \u003c nums.size(); i++)\n    {\n        printf(\"%d \", nums[i]);\n    }\n}\n\n// Array sorting example\nvoid arrayExample() \n{\n    char arr[] = { 'a', 'c', 'f', 'b' };\n    int size = sizeof(arr) / sizeof(arr[0]);\n    Hollow::type::sort(arr, size);\n\n    for (int i = 0; i \u003c size; i++) \n    {\n        printf(\"%c \", arr[i]);\n    }\n}\n```\n## Installation Guide\n\n### Option 1: Direct Include\n   1. Download `sort.h`\n   2. Add it to your project\n   3. Include the header: `#include \"sort.h\"`\n\n### Option 2: Git Clone\n```bash\ngit clone https://github.com/Ho11ow1/Sorting_algorithm\n```\n\n### Troubleshooting\n* Ensure `sort.h` is in your include path\n* Check C++ version compatibility\n* Verify STL is available\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fho11ow1%2Fsorting_algorithm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fho11ow1%2Fsorting_algorithm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fho11ow1%2Fsorting_algorithm/lists"}