{"id":13513183,"url":"https://github.com/dohliam/sort-columns","last_synced_at":"2025-07-12T23:34:01.746Z","repository":{"id":88992135,"uuid":"71784594","full_name":"dohliam/sort-columns","owner":"dohliam","description":"Sort, uniq, reverse, and randomize data","archived":false,"fork":false,"pushed_at":"2020-07-08T22:02:02.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-21T14:45:52.270Z","etag":null,"topics":["alpha-order","dedupe","duplicate-values","duplicates-removed","javascript","remove-duplicates","sort","sort-columns","sort-words","tiny-tools","uniq"],"latest_commit_sha":null,"homepage":"https://dohliam.github.io/tiny_tools/sort/","language":"JavaScript","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/dohliam.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":"2016-10-24T12:02:53.000Z","updated_at":"2023-11-08T09:48:04.000Z","dependencies_parsed_at":"2023-06-13T11:15:14.507Z","dependency_job_id":null,"html_url":"https://github.com/dohliam/sort-columns","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dohliam/sort-columns","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dohliam%2Fsort-columns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dohliam%2Fsort-columns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dohliam%2Fsort-columns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dohliam%2Fsort-columns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dohliam","download_url":"https://codeload.github.com/dohliam/sort-columns/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dohliam%2Fsort-columns/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265068412,"owners_count":23706444,"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":["alpha-order","dedupe","duplicate-values","duplicates-removed","javascript","remove-duplicates","sort","sort-columns","sort-words","tiny-tools","uniq"],"created_at":"2024-08-01T04:00:42.505Z","updated_at":"2025-07-12T23:34:01.732Z","avatar_url":"https://github.com/dohliam.png","language":"JavaScript","funding_links":[],"categories":["See also"],"sub_categories":[],"readme":"# Sort columns - Sort, uniq, reverse, and randomize data\n\nThis is a small JavaScript tool that aims to replicate many of the features of the command-line tools `sort` and `uniq`. It was developed for the simple reason that I _really miss_ these tools whenever a command-line is not available.\n\n## Supported features\n\n* Sort items in alpha order\n* Reverse sort\n* Random sort\n* Print unique values, i.e. with duplicates removed\n* Print duplicate values\n* Configurable input and output delimiters\n* Works offline (just clone or download this repository and open `index.html` in any browser)\n* [Online demo](https://dohliam.github.io/tiny_tools/sort/) available\n\n## Usage\n\nEnter some data in the **Input** box. By default the data should be separated by linebreaks (`\\n`), but [this is configurable](#delimiters).\n\nClick one of the buttons below the _Input_ box to sort the data:\n\n* **Sort!**: Sorts the data in alpha order (similar to command-line `sort`)\n* **Uniq!**: Remove duplicates and display only unique values (similar to `uniq`)\n* **Uniq -d!**: Show only duplicate values (similar to `uniq -d`)\n* **Reverse!**: Sort the data in reverse order (similar to `sort -r`)\n* **Random!**: Sort the data in random order (similar to `sort -R`)\n\n## Delimiters\n\nBoth input and output delimiters can be configured in the corresponding boxes at the bottom of the page.\n\n### Input separator\n\nThis sets the delimiter for data entered into the _Input_ box. The default separator is `\\n` (linebreaks), which means that each line will be considered a separate value. This can be changed to e.g. `,` to indicate that the values are separated by commas.\n\n### Output separator\n\nThis sets the delimiter for the sorted result data. The default separator is `\\n` (linebreaks), which means that each value will be printed on a separate line. This can be changed to e.g. `,` to print results separated by commas.\n\n## See also\n\n\"Sort columns\" is part of the [**tiny tools**](https://dohliam.github.io/tiny_tools/) series.\n\nOther tools for working with columns of data that might also be of interest:\n\n* [Compare columns](https://github.com/dohliam/compare-columns)\n* [Elements of _a_ in _b_](https://github.com/dohliam/elements-of-a-in-b)\n* [Sum columns](https://github.com/dohliam/sum-columns)\n\n## Credits\n\n* [milligram](https://github.com/milligram/milligram) CSS by @cjpatoilo, prototyped using [dropin-minimal-css](https://github.com/dohliam/dropin-minimal-css)\n* [github-corners](https://github.com/tholman/github-corners) by @tholman\n\n## License\n\nMIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdohliam%2Fsort-columns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdohliam%2Fsort-columns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdohliam%2Fsort-columns/lists"}