# Zsort: import organizer for zig

> Source: <https://ziggit.dev/t/zsort-import-organizer-for-zig/17110#post_5>
> Published: 2026-08-09 08:13:27+00:00

zsort: import organizer for zig

I was missing isort from Python, so I built zsort for Zig: [GitHub - mstdokumaci/zsort: Opinionated import organizer for Zig similar to isort / goimports · GitHub](https://github.com/mstdokumaci/zsort)

I am using zlint and zwanzig on my Zig projects, but neither of them sorts the imports, and I like my code tidy. std.zig.Ast made my life easier building this project, can’t tell the same about trying to support both 0.15.2 and 0.16 at the same time.

AI / LLM usage disclosure

I used cheap LLMs for doing the hard work from the beginning to the end. But I have been coding since 1996, so I hope this is still not vibe coding.

4 Likes

[aixin](https://ziggit.dev/u/aixin)
2
I use your tool in my project, and it just work! The code is more cleaner. Thank you!

1 Like

Thank you for this lovely feedback! Great to hear the dev satisfaction with tidy code.

[mike](https://ziggit.dev/u/mike)
4
Looks nice Any thought about supporting bottom-of-file imports? I’ve been trying that out recently since the language lets us do this

I am unaware of the concept. Let me research a little bit and understand better.
