Skip to content(if available)orjump to list(if available)

Show HN: Ordered – A sorted collection library for Zig

Show HN: Ordered – A sorted collection library for Zig

2 comments

·October 28, 2025

I made an early version of a sorted collection library for Zig. Sorted collections are data structures that maintain the data in sorted order. Examples of these data structures are `java.util.TreeMap` in Java and `std::map` in C++. These data structures are mainly used for fast lookups (point search) and fast range searches.

The library is available on GitHub: https://github.com/CogitatorTech/ordered

masklinn

… why are you calling it ordered when it’s sorted rather than, well, ordered?

habedi0

I picked that name (`ordered`, as in `put into and kept in an arrangement`) when I started the project a few months ago and decided to keep it.