{"id":16862353,"url":"https://github.com/dave/sorter","last_synced_at":"2025-03-18T15:56:57.190Z","repository":{"id":143254376,"uuid":"66029701","full_name":"dave/sorter","owner":"dave","description":"Simplify sorting in Go","archived":false,"fork":false,"pushed_at":"2017-03-13T21:42:18.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-24T19:44:47.255Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dave.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2016-08-18T20:48:26.000Z","updated_at":"2018-10-04T17:10:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"a7f7da11-81b0-449e-bb7b-705a08651f42","html_url":"https://github.com/dave/sorter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dave%2Fsorter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dave%2Fsorter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dave%2Fsorter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dave%2Fsorter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dave","download_url":"https://codeload.github.com/dave/sorter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244257256,"owners_count":20424127,"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":[],"created_at":"2024-10-13T14:35:16.131Z","updated_at":"2025-03-18T15:56:57.161Z","avatar_url":"https://github.com/dave.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sorter\nSimplify sorting in Go. Thanks to [Merovius](https://github.com/merovius) for the inspiration.\n\n# Usage\n```go\ntype person struct{ name string }\n\ns := []person{{name: \"foo\"}, {name: \"bar\"}, {name: \"baz\"}, {name: \"qux\"}}\n\nsort.Sort(sorter.New(\n    len(s),\n    func(i, j int) { s[i], s[j] = s[j], s[i] },\n    func(i, j int) bool { return s[i].name \u003c s[j].name },\n))\n\nfmt.Println(s)\n// Output: [{bar} {baz} {foo} {qux}]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdave%2Fsorter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdave%2Fsorter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdave%2Fsorter/lists"}