{"id":19881209,"url":"https://github.com/arda-guler/wormholesort","last_synced_at":"2025-07-08T18:34:48.359Z","repository":{"id":187093630,"uuid":"676298402","full_name":"arda-guler/WormholeSort","owner":"arda-guler","description":"Do not sort list elements, sort the order in which you access them!","archived":false,"fork":false,"pushed_at":"2023-08-08T22:40:20.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-08T21:13:15.956Z","etag":null,"topics":["proof-of-concept","python","sort","sorting","sorting-algorithm","sorting-algorithms"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/WormholeSort/","language":"Python","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/arda-guler.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}},"created_at":"2023-08-08T22:23:48.000Z","updated_at":"2023-08-09T21:57:02.000Z","dependencies_parsed_at":"2023-08-09T00:09:19.637Z","dependency_job_id":null,"html_url":"https://github.com/arda-guler/WormholeSort","commit_stats":null,"previous_names":["arda-guler/wormholesort"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/arda-guler/WormholeSort","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arda-guler%2FWormholeSort","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arda-guler%2FWormholeSort/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arda-guler%2FWormholeSort/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arda-guler%2FWormholeSort/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arda-guler","download_url":"https://codeload.github.com/arda-guler/WormholeSort/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arda-guler%2FWormholeSort/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264324456,"owners_count":23590874,"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":["proof-of-concept","python","sort","sorting","sorting-algorithm","sorting-algorithms"],"created_at":"2024-11-12T17:13:36.358Z","updated_at":"2025-07-08T18:34:48.306Z","avatar_url":"https://github.com/arda-guler.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wormhole Sort\n\"Wormhole Sort\" implements a way to sort your lists by sorting the indexes rather than the list elements. This way, the order of the elements is not modified, but the way you access the elements is.\n\n## Installation\n```\npip install WormholeSort\n```\n(or just grab WormholeSort.py, it is a tiny single file)\n\n## What It Does \u0026 How to Use\nImagine you have the following list:\n```python\nsample_list = [5, 3, -2, 12, 6, 120, 5]\n```\nYou would like to sort this list, but you want the list data to remain the same. Instead of moving the elements, you just warp the topology of the spacetime manifold that exists in between the elements, reconnecting it in an ordered manner.\n```python\nfrom WormholeSort import WormholeList\nsorted_list = WormholeList(sample_list)\n```\nThe result can be checked like so:\n```python\nprint(\"List data:\", sorted_list)\n\nprint(\"List elements accessed in order:\")\nfor i in range(len(sorted_list)):\n    print(\"Index\", i, \"=\", sorted_list[i])\n```\n\nWhich gives the following result as the output:\n```\nList data: [5, 3, -2, 12, 6, 120, 5]\nList elements accessed in order:\nIndex 0 = -2\nIndex 1 = 3\nIndex 2 = 5\nIndex 3 = 5\nIndex 4 = 6\nIndex 5 = 12\nIndex 6 = 120\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farda-guler%2Fwormholesort","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farda-guler%2Fwormholesort","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farda-guler%2Fwormholesort/lists"}