{"id":16833530,"url":"https://github.com/ole/sortedarray","last_synced_at":"2025-04-04T15:07:52.377Z","repository":{"id":17211238,"uuid":"81362607","full_name":"ole/SortedArray","owner":"ole","description":"An array that keeps its elements sorted according to a given sort predicate.","archived":false,"fork":false,"pushed_at":"2024-10-22T16:40:26.000Z","size":118,"stargazers_count":165,"open_issues_count":1,"forks_count":28,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-28T14:06:36.714Z","etag":null,"topics":["collection","sorted-array","swift"],"latest_commit_sha":null,"homepage":null,"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/ole.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":"2017-02-08T18:36:17.000Z","updated_at":"2024-01-18T13:25:54.000Z","dependencies_parsed_at":"2024-12-14T17:03:05.307Z","dependency_job_id":"e7ddd52e-8f1e-4ab8-84f1-791f32064486","html_url":"https://github.com/ole/SortedArray","commit_stats":{"total_commits":93,"total_committers":5,"mean_commits":18.6,"dds":"0.13978494623655913","last_synced_commit":"54c8639696fb5b7de2cff0c4b0016372d1d9414f"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ole%2FSortedArray","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ole%2FSortedArray/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ole%2FSortedArray/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ole%2FSortedArray/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ole","download_url":"https://codeload.github.com/ole/SortedArray/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247198450,"owners_count":20900080,"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":["collection","sorted-array","swift"],"created_at":"2024-10-13T11:54:32.292Z","updated_at":"2025-04-04T15:07:52.358Z","avatar_url":"https://github.com/ole.png","language":"Swift","readme":"# SortedArray\n\nA sorted array type for Swift 4.0+.\n\nProvides the `SortedArray` type, an array that keeps its elements sorted according to a given sort predicate.\n\nWritten by Ole Begemann, February 2017.\n\nFor more info, see the [GitHub repo](https://github.com/ole/SortedArray) and my accompanying [blog article](https://oleb.net/blog/2017/02/sorted-array/).\n\n## Supported Platforms\n\nThe current release supports Swift 4.0 and up.\n\nIf you need support for older Swift version, here's a list of the latest releases that support specific Swift versions:\n\n| Swift version | Latest SortedArray release |\n| ------------- | -------------------------- |\n| 4.x           | master                     |\n| 3.x           | [0.6.0](https://github.com/ole/SortedArray/releases/tag/0.6.0) |\n| 3.0           | [0.4](https://github.com/ole/SortedArray/releases/tag/0.4.0)   |\n\nSince the code has no dependencies other than the Swift standard library (it doesn't even use Foundation), it should work on all platforms where Swift is available.\n\nI tested it on macOS, iOS, tvOS, and Linux.\n\n## Usage\n\n### Swift Package Manager\n\nAdd this to your `Package.swift` file:\n\n```swift\n// Package.swift\nimport PackageDescription\n\nlet package = Package(\n    name: \"\u003cYour package name\u003e\",\n    dependencies: [\n        .Package(url: \"https://github.com/ole/SortedArray.git\", majorVersion: 0)\n    ]\n)\n```\n\n### Carthage\n\nAdd this to your `Cartfile`:\n\n```\ngithub \"ole/SortedArray\" ~\u003e 0.7\n```\n\nIntegration via Carthage should work for macOS, iOS, tvOS, and watchOS targets.\n\n### Manually\n\nClone the repository and add or copy `SortedArray.swift` to your project. It has no dependencies.\n\n## Dependencies\n\nNone.\n\n## License\n\n[MIT license](https://github.com/ole/SortedArray/blob/master/LICENSE.txt).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fole%2Fsortedarray","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fole%2Fsortedarray","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fole%2Fsortedarray/lists"}