{"id":43678249,"url":"https://github.com/macie/sortof","last_synced_at":"2026-02-05T01:20:31.045Z","repository":{"id":190818767,"uuid":"681351611","full_name":"macie/sortof","owner":"macie","description":"Peculiar sorting tools","archived":false,"fork":false,"pushed_at":"2025-06-15T09:13:36.000Z","size":133,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"dev","last_synced_at":"2025-06-15T09:44:08.564Z","etag":null,"topics":["bogosort","cli","slowsort","stalinsort"],"latest_commit_sha":null,"homepage":"","language":"Go","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/macie.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,"zenodo":null}},"created_at":"2023-08-21T20:30:16.000Z","updated_at":"2025-06-15T09:13:37.000Z","dependencies_parsed_at":"2023-11-07T03:32:10.968Z","dependency_job_id":"1bf0d4c0-1d41-467e-8ff2-37f7dc7f9c80","html_url":"https://github.com/macie/sortof","commit_stats":null,"previous_names":["macie/sortof"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/macie/sortof","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macie%2Fsortof","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macie%2Fsortof/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macie%2Fsortof/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macie%2Fsortof/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/macie","download_url":"https://codeload.github.com/macie/sortof/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macie%2Fsortof/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29105274,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T00:52:08.035Z","status":"ssl_error","status_checked_at":"2026-02-05T00:52:07.703Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bogosort","cli","slowsort","stalinsort"],"created_at":"2026-02-05T01:20:30.437Z","updated_at":"2026-02-05T01:20:31.031Z","avatar_url":"https://github.com/macie.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sortof\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/macie/sortof.svg)](https://pkg.go.dev/github.com/macie/sortof)\n[![OpenSSF Best Practices](https://www.bestpractices.dev/projects/8153/badge)](https://www.bestpractices.dev/projects/8153)\n[![Quality check status](https://github.com/macie/sortof/actions/workflows/check.yml/badge.svg)](https://github.com/macie/sortof/actions/workflows/check.yml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/macie/sortof)](https://goreportcard.com/report/github.com/macie/sortof)\n\n**sortof** provides implementations of ~~peculiar~~ _carefully selected_ sorting algorithms as a:\n\n- CLI tool for sorting input, line by line (similar to _[POSIX sort](https://pubs.opengroup.org/onlinepubs/9699919799/utilities/sort.html)_),\n- Go module with functions for sorting slices (similar to _[slices.Sort()](https://pkg.go.dev/slices#Sort)_).\n\nImplemented algorithms:\n\n- impractical due to poor time complexity:\n    - [bogosort](https://en.wikipedia.org/wiki/Bogosort)\n    - [miraclesort](https://en.wikipedia.org/wiki/Bogosort#miracle_sort)\n    - [slowsort](https://en.wikipedia.org/wiki/Slowsort)\n\n- impractical due to destructive behavior:\n    - [stalinsort](https://mastodon.social/@mathew/100958177234287431)\n\n## Usage\n\n```sh\n$ cat letters.txt\nc\na\nb\n$ sortof bogo -t 10s letters.txt\na\nb\nc\n```\n\n## Installation\n\nDownload the [latest stable release from GitHub](https://github.com/macie/sortof/releases/latest).\n\nYou can also build it manually with: `make \u0026\u0026 make build`.\n\n## Development\n\nFor detailed contribution guidelines, see [CONTRIBUTING.md](./CONTRIBUTING.md).\n\nUse `make` (GNU or BSD):\n\n- `make` - install dependencies\n- `make test` - run tests\n- `make e2e` - run end-to-end tests for CLI\n- `make check` - run static code analysis\n- `make build` - compile binaries from latest commit\n- `make dist` - compile binaries from latest commit for supported OSes\n- `make clean` - remove compilation artifacts\n- `make cli-release` - tag latest commit as a new release of CLI\n- `make module-release` - tag latest commit as a new release of Go module\n- `make info` - print system info (useful for debugging).\n\n### Versioning\n\nThis repository contains both a CLI and Go module which can be developed at different paces.\nCommits with versions are tagged with:\n- `vX.X.X` (_[semantic versioning](https://semver.org/)_) - versions of Go module\n- `cli/vYYYY.0M.MICRO` (_[calendar versioning](https://calver.org/)_) - versions of command-line utility.\n\n### Security hardening\n\nOn modern Linux distributions and OpenBSD, the CLI application has restricted access to kernel\ncalls with [seccomp](https://en.wikipedia.org/wiki/Seccomp) and [pledge](https://man.openbsd.org/pledge.2).\n\n## License\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacie%2Fsortof","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmacie%2Fsortof","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacie%2Fsortof/lists"}