{"id":15587615,"url":"https://github.com/ukrbublik/nif_sorter","last_synced_at":"2026-05-29T08:03:23.262Z","repository":{"id":57554173,"uuid":"197985086","full_name":"ukrbublik/nif_sorter","owner":"ukrbublik","description":"Faster sort typed list of strings/integers/floats for Elixir","archived":false,"fork":false,"pushed_at":"2019-07-24T14:26:10.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-02T10:22:59.904Z","etag":null,"topics":["elixir","nif","sort"],"latest_commit_sha":null,"homepage":"https://hex.pm/packages/nif_sorter","language":"Elixir","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/ukrbublik.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":"2019-07-20T22:02:07.000Z","updated_at":"2019-07-24T14:26:12.000Z","dependencies_parsed_at":"2022-09-26T18:51:15.580Z","dependency_job_id":null,"html_url":"https://github.com/ukrbublik/nif_sorter","commit_stats":null,"previous_names":["ukrbublik/nif_strsort"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ukrbublik/nif_sorter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ukrbublik%2Fnif_sorter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ukrbublik%2Fnif_sorter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ukrbublik%2Fnif_sorter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ukrbublik%2Fnif_sorter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ukrbublik","download_url":"https://codeload.github.com/ukrbublik/nif_sorter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ukrbublik%2Fnif_sorter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33642318,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["elixir","nif","sort"],"created_at":"2024-10-02T22:02:27.086Z","updated_at":"2026-05-29T08:03:23.233Z","avatar_url":"https://github.com/ukrbublik.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nif_sorter\n[![CircleCI](https://circleci.com/gh/ukrbublik/nif_sorter.svg?style=svg)](https://circleci.com/gh/ukrbublik/nif_sorter)\n\nNIF faster sort typed list of strings/integers/floats (with C++ `std::sort`)\n\n\n### Installation\nAdd to `deps` in `mix.exs`:\n```elixir\n{:nif_sorter, \"~\u003e 0.2.2\"}\n```\nWorks on Elixir 1.7+\n\n\n### Usage\n```elixir\nNifSorter.sort([\"xir\", \"i\", \"el\"])\n# [\"el\", \"i\", \"xir\"]\nNifSorter.sort([2, 3, 1])\n# [1, 2, 3]\nNifSorter.sort([2.31, 2.07, 1.2, -10.4])\n# [-10.4, 1.2, 2.07, 2.31]\n\nNifSorter.sort([1, 2.2])\n# (ArgumentError) argument error\n```\n\n### Restrictions\n- Works only on strictly typed lists. \n  Supported types: `string`, `integer`, `float`. \n  Can't mix types in list like `NifSorter.sort([\"aa\", 12, 1.33])`\n- Sort by integers works for integers in range `-9223372036854775808 .. 9223372036854775807`\n\n\n### Performance\n- See benchmarks for\n  - [integers](bench_results/int.md)\n  - [floats](bench_results/float.md)\n  - [strings](bench_results/str.md)\n- Memory usage is more efficient.\n- Sort list of numbers is 2-3x faster.\n- Sort list of strings wins by speed on big data (~30% faster on 100K).\n\n\n### Commands\n- Interactive shell:\n```sh\n$ make cli\n```\n- Run benchmarks:\n```sh\n$ make bench\n$ make bench/fast\n```\n- Run tests:\n```sh\n$ make test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fukrbublik%2Fnif_sorter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fukrbublik%2Fnif_sorter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fukrbublik%2Fnif_sorter/lists"}