{"id":17049127,"url":"https://github.com/toddself/jortsort","last_synced_at":"2025-07-13T19:34:29.722Z","repository":{"id":28103081,"uuid":"31601394","full_name":"toddself/JortSort","owner":"toddself","description":"http://jort.technology but in Go","archived":false,"fork":false,"pushed_at":"2015-03-03T15:25:18.000Z","size":120,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-07T15:13:32.318Z","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/toddself.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}},"created_at":"2015-03-03T14:06:52.000Z","updated_at":"2015-03-03T15:25:18.000Z","dependencies_parsed_at":"2022-08-21T17:10:10.681Z","dependency_job_id":null,"html_url":"https://github.com/toddself/JortSort","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/toddself/JortSort","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toddself%2FJortSort","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toddself%2FJortSort/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toddself%2FJortSort/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toddself%2FJortSort/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toddself","download_url":"https://codeload.github.com/toddself/JortSort/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toddself%2FJortSort/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265195228,"owners_count":23726053,"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-14T09:53:54.962Z","updated_at":"2025-07-13T19:34:29.675Z","avatar_url":"https://github.com/toddself.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![build status](https://secure.travis-ci.org/toddself/JortSort.png)](http://travis-ci.org/toddself/JortSort)\n\n# JortSort\n\nThis is an implementation of Jenn Schiffer's famous [JortSort](http://jort.technology) in Go. This will tell you if you need to sort your array or not.\n\n## Installing\n\n`go get github.com/toddself/JortSort`\n\n## Usage\n\n```\nimport (\n  \"github.com/toddself/JortSort\"\n  \"fmt\"\n)\n\nfunc Main() {\n  arr := []string{\"a\", \"b\", \"c\", \"d\"}\n  jortArray := jort.Strings2Sortable(arr)\n  sorted := jort.JortSort(jortArray)\n\n  if sorted {\n    fmt.Println(\"Your array is sorted\")\n  } else {\n    fmt.Println(\"Your array is not sorted\")\n  }\n}\n```\n\nSince Go is a pain in the ass and \"strongly-typed\" (whatever that means), I had to implement a generic interface and make that interface sortable. So you need to convert all your arrays into these special sortable types. There are three helper functions for this: `String2Sortable`, `Int2Sortable` and `Float642Sortable`.  If you need any other number type, you should re-think your project's data probably.\n\n## Tests\n\nEverything has tests rights?\n\n```\n↳ go test -v\n=== RUN TestStringSort\n--- PASS: TestStringSort (0.00s)\n=== RUN TestIntSort\n--- PASS: TestIntSort (0.00s)\n=== RUN TestStringToSortable\n--- PASS: TestStringToSortable (0.00s)\n=== RUN TestIntToSortable\n--- PASS: TestIntToSortable (0.00s)\n=== RUN TestFloat64ToSortable\n--- PASS: TestFloat64ToSortable (0.00s)\nPASS\nok    github.com/toddself/JortSort  0.009s\n```\n\n## License\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoddself%2Fjortsort","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoddself%2Fjortsort","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoddself%2Fjortsort/lists"}