cd /news/developer-tools/ordered-a-fast-sorted-collection-lib… · home › topics › developer-tools › article
[ARTICLE · art-166200] src=ziggit.dev ↗ pub= topic=developer-tools verified=true sentiment=· neutral

Ordered: a fast sorted collection library for Zig

CogitatorTech released Ordered, a Zig library of sets and maps that keep elements sorted by key at all times, targeting Zig 0.16 and 0.17 with older releases expected to work on Zig 0.15. The library is built around a simple, uniform API across implementations, with correctness and efficiency as stated design goals, and benchmark results comparing Ordered against sorted set and map implementations from similar libraries are published on the project's benchmarks site. The author said AI-assisted coding tools are used on the project, with changes kept small for review before approval.

read1 min views3 publishedNov 9, 2026

Ordered is a Zig library that includes the implementations of sets and maps where elements are sorted by their keys at all times.

The main design decisions for the library were that the API must be simple and uniform (have the same form and facade for different implementations), the implementations must be correct, and efficient (they must be fast and don’t use more memory than needed).

Some benchmark results for the implementations in Ordered against sorted set and map implementations from similar libraries are available here.

Ordered itself is available here. Ordered is mainly for Zig 0.16 and 0.17 (but older releases should work with Zig 0.15 too).

I use AI-assisted coding tools for the project. However, I’m very opinionated about how AI should work, and the process involves a lot of back and forth between me and AI. I normally keep the changes small so I can have a look before approving.

── more in #developer-tools 4 stories · sorted by recency
── more on @ordered 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/ordered-a-fast-sorte…] indexed:0 read:1min 2026-11-09 · —