{"id":16683897,"url":"https://github.com/meniny/sortalgorithm","last_synced_at":"2025-04-09T23:32:27.026Z","repository":{"id":62455824,"uuid":"116621044","full_name":"Meniny/SortAlgorithm","owner":"Meniny","description":"🛂 Swift array sort algorithm implementation.","archived":false,"fork":false,"pushed_at":"2019-04-16T04:19:02.000Z","size":51,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T10:21:23.199Z","etag":null,"topics":["algorithm","sort","sort-algorithm","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/Meniny.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-08T02:49:29.000Z","updated_at":"2019-10-01T18:18:07.000Z","dependencies_parsed_at":"2022-11-02T00:16:54.884Z","dependency_job_id":null,"html_url":"https://github.com/Meniny/SortAlgorithm","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meniny%2FSortAlgorithm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meniny%2FSortAlgorithm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meniny%2FSortAlgorithm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meniny%2FSortAlgorithm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Meniny","download_url":"https://codeload.github.com/Meniny/SortAlgorithm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248129948,"owners_count":21052668,"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":["algorithm","sort","sort-algorithm","swift"],"created_at":"2024-10-12T14:27:11.650Z","updated_at":"2025-04-09T23:32:27.005Z","avatar_url":"https://github.com/Meniny.png","language":"Swift","readme":"\n\u003cp align=\"center\"\u003e\n  \u003c!-- \u003cimg src=\"https://i.loli.net/2018/01/05/5a4f153d36a21.png\" alt=\"SortAlgorithm\"\u003e --\u003e\n  \u003cbr/\u003e\u003ca href=\"https://cocoapods.org/pods/SortAlgorithm\"\u003e\n  \u003cimg alt=\"Version\" src=\"https://img.shields.io/badge/version-1.2.0-brightgreen.svg\"\u003e\n  \u003cimg alt=\"Author\" src=\"https://img.shields.io/badge/author-Meniny-blue.svg\"\u003e\n  \u003cimg alt=\"Build Passing\" src=\"https://img.shields.io/badge/build-passing-brightgreen.svg\"\u003e\n  \u003cimg alt=\"Swift\" src=\"https://img.shields.io/badge/swift-5.0%2B-orange.svg\"\u003e\n  \u003cbr/\u003e\n  \u003cimg alt=\"Platforms\" src=\"https://img.shields.io/badge/platform-macOS%20%7C%20iOS%20%7C%20watchOS%20%7C%20tvOS-lightgrey.svg\"\u003e\n  \u003cimg alt=\"MIT\" src=\"https://img.shields.io/badge/license-MIT-blue.svg\"\u003e\n  \u003cbr/\u003e\n  \u003cimg alt=\"Cocoapods\" src=\"https://img.shields.io/badge/cocoapods-compatible-brightgreen.svg\"\u003e\n  \u003cimg alt=\"Carthage\" src=\"https://img.shields.io/badge/carthage-working%20on-red.svg\"\u003e\n  \u003cimg alt=\"SPM\" src=\"https://img.shields.io/badge/swift%20package%20manager-compatible-brightgreen.svg\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n# Introduction\n\n## What's this?\n\n`SortAlgorithm` is a Swift array sort algorithm framework.\n\n## Requirements\n\n* iOS 8.0+\n* tvOS 9.0+\n* macOS 10.9+\n* watchOS 2.0+\n* Xcode 9 with Swift 5\n\n## Installation\n\n#### CocoaPods\n\n```ruby\npod 'SortAlgorithm'\n```\n\n## Contribution\n\nYou are welcome to fork and submit pull requests.\n\n## License\n\n`SortAlgorithm` is open-sourced software, licensed under the `MIT` license.\n\n## Sample\n\n```swift\n// Randome Array\nlet original = [Int].init(repeating: 0, count: 5000).map { $0 + Int(arc4random_uniform(5000)) }\nlet closure: Array\u003cInt\u003e.SortingCompareClosure = { (l, r) -\u003e Bool in\n    return l \u003c r\n}\n// Now sort\nprint(\"Bubble: \\n\\(original.bubbleSort(by: closure))\")\nprint(\"\\n\\n======\\n\\n\")\nprint(\"Insertion: \\n\\(original.insertionSort(by: closure))\")\nprint(\"\\n\\n======\\n\\n\")\nprint(\"Merge: \\n\\(original.mergeSort(by: closure))\")\nprint(\"\\n\\n======\\n\\n\")\nprint(\"Quick: \\n\\(original.quickSort(by: closure))\")\nprint(\"\\n\\n======\\n\\n\")\nprint(\"Counting: \\n\\(original.countingSort())\")\nprint(\"\\n\\n======\\n\\n\")\nprint(\"Heap: \\n\\(original.heapSort(by: closure))\")\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeniny%2Fsortalgorithm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeniny%2Fsortalgorithm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeniny%2Fsortalgorithm/lists"}