{"id":25412510,"url":"https://github.com/mvakili/all-sorts","last_synced_at":"2025-10-05T15:23:44.721Z","repository":{"id":121597677,"uuid":"274726763","full_name":"mvakili/all-sorts","owner":"mvakili","description":"Java implementation of commonly used sort functions","archived":false,"fork":false,"pushed_at":"2020-06-25T04:46:43.000Z","size":1710,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-16T11:29:45.653Z","etag":null,"topics":["algorithm","bubble-sort","insertion-sort","java","merge-sort","quick-sort","selection-sort","shell-sort","sort","sorting-algorithms","visualization"],"latest_commit_sha":null,"homepage":"","language":"Java","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/mvakili.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":"2020-06-24T17:15:51.000Z","updated_at":"2020-06-27T01:20:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"b94782cb-9e5d-4c9b-8b14-c76472c478b0","html_url":"https://github.com/mvakili/all-sorts","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/mvakili%2Fall-sorts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvakili%2Fall-sorts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvakili%2Fall-sorts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvakili%2Fall-sorts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mvakili","download_url":"https://codeload.github.com/mvakili/all-sorts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248952292,"owners_count":21188425,"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":["algorithm","bubble-sort","insertion-sort","java","merge-sort","quick-sort","selection-sort","shell-sort","sort","sorting-algorithms","visualization"],"created_at":"2025-02-16T11:26:39.956Z","updated_at":"2025-10-05T15:23:44.668Z","avatar_url":"https://github.com/mvakili.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Java implementation of commonly used sort functions\n\nThis is the visual implementation of sorting algorithms.\nthis code covers the following algorithms:\n\n- [Bubble Sort]( http://en.wikipedia.org/wiki/Bubble_sort)\n- [Selection Sort]( https://en.wikipedia.org/wiki/Selection_sort)\n- [Insertion Sort]( http://en.wikipedia.org/wiki/Insertion_sort)\n- [Quick Sort]( http://en.wikipedia.org/wiki/Quicksort)\n- [Merge Sort]( http://en.wikipedia.org/wiki/Merge_sort)\n- [Shell Sort]( https://en.wikipedia.org/wiki/Shellsort)\n\nThe implementation generates random unsorted double array based on user input and generates output both for CLI :desktop_computer: and GUI :bar_chart: using java `StdDraw` library.\n\n## How it works\nFirst of all, you should compile `allSorts.java` file using this command:\n```bash\n\u003e javac allSorts.java\n```\nAnd to run the app, just run the command below. it will give some help for usage:\n```bash\n\u003e java allSorts\n\nHelp:\njava allSort [Algorithm Name] [Count] {delay}\n\nAlgorithm Names:\nbubble:  Bubble Sort\nselection: Selection Sort\ninsertion: Insertion Sort\nquick: Quick Sort\nmerge: Merge Sort\nshell: Shell Sort\n\nDelay:\ntime for each compare to show graphics in Milisecond\n```\n\n## Demos\n### Bubble Sort\n```bash\n\u003e java bubble 20 100\n```\n![Bubble Sort](previews/bubble-sort.gif)\n\n### Selection Sort\n```bash\n\u003e java selection 20 100\n```\n![Selection Sort](previews/selection-sort.gif)\n\n### Insertion Sort\n```bash\n\u003e java insertion 20 100\n```\n![Insertion Sort](previews/insertion-sort.gif)\n\n### Quick Sort\n```bash\n\u003e java quick 20 100\n```\n![Quick Sort](previews/quick-sort.gif)\n\n\n### Merge Sort\n```bash\n\u003e java merge 20 100\n```\n![Merge Sort](previews/merge-sort.gif)\n\n\n### Shell Sort\n```bash\n\u003e java shell 20 100\n```\n![Shell Sort](previews/shell-sort.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvakili%2Fall-sorts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmvakili%2Fall-sorts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvakili%2Fall-sorts/lists"}