{"id":13700908,"url":"https://github.com/johnweldon/sortcsv","last_synced_at":"2025-06-19T22:33:54.461Z","repository":{"id":142430592,"uuid":"86119768","full_name":"johnweldon/sortcsv","owner":"johnweldon","description":"Sort CSV files","archived":false,"fork":false,"pushed_at":"2022-07-14T17:25:58.000Z","size":158,"stargazers_count":47,"open_issues_count":3,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T06:33:16.711Z","etag":null,"topics":["command-line-tool","csv","go","sort","sort-csv-files"],"latest_commit_sha":null,"homepage":null,"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/johnweldon.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}},"created_at":"2017-03-24T23:54:47.000Z","updated_at":"2024-09-27T11:35:45.000Z","dependencies_parsed_at":"2023-04-15T11:17:29.361Z","dependency_job_id":null,"html_url":"https://github.com/johnweldon/sortcsv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/johnweldon/sortcsv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnweldon%2Fsortcsv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnweldon%2Fsortcsv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnweldon%2Fsortcsv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnweldon%2Fsortcsv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnweldon","download_url":"https://codeload.github.com/johnweldon/sortcsv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnweldon%2Fsortcsv/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260843251,"owners_count":23071516,"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":["command-line-tool","csv","go","sort","sort-csv-files"],"created_at":"2024-08-02T20:01:07.631Z","updated_at":"2025-06-19T22:33:49.448Z","avatar_url":"https://github.com/johnweldon.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# sortcsv\n\nTool to sort csv files by named columns.\n\n## NB \n\nDeprecated\n\n## Example\n\nThe [example](example_sort) script shows how to use it to sort with multiple sub-sort columns.\n\n```shell\n$ ./example_sort\n\nSort by Last, First, Email\n--\nFirst,Last,Email\nMary,Bunce,mb@example.com\nJohn,Doe,doej@example.com\nMary,O'Henry,mary@example.com\nMary,O'Henry,moh@example.com\nAdam,Van der Oos,voos@example.com\n\n\nSort by First, Last, Email\n--\nFirst,Last,Email\nAdam,Van der Oos,voos@example.com\nJohn,Doe,doej@example.com\nMary,Bunce,mb@example.com\nMary,O'Henry,mary@example.com\nMary,O'Henry,moh@example.com\n```\n\n## Installation\n\nRequires Go 1.8+ because it uses the new [`sort.Slice`](https://golang.org/pkg/sort/#Slice) feature.\n\n`go get jw4.us/sortcsv`\n\n## Usage\n\n`sortcsv sort`\n\n```\nNAME:\n   sortcsv sort - \n\nUSAGE:\n   sortcsv sort [command options] [arguments...]\n\nOPTIONS:\n   --infile value, --in value, -i value    Defaults to stdin (-) if not specified. (default: -)\n   --outfile value, --out value, -o value  Defaults to stdout (-) if not specified. (default: -)\n   --sortby value, -s value                Columns to sort by, repeat for sub-sort\n   --tab, -t                               Input is tab delimited, rather than comma delimited (default: false)\n   --help, -h                              show help (default: false)\n``` \n\nIf `--infile` or `--outfile` are not specified they default to `stdin` and `stdout` respectively.\n\nThe `--sortby` flag can be specified repeatedly to add sub-sorting.\n   \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnweldon%2Fsortcsv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnweldon%2Fsortcsv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnweldon%2Fsortcsv/lists"}