---
title: "go/keep-sorted"
url: https://perrotta.dev/2025/09/go/keep-sorted/
last_updated: 2026-01-03
---


[Previously]({{< ref "2024-12-26-keep-sorted" >}}),
[previously]({{< ref "2025-03-06-using-keep-sorted-to-keep-your-gitconfig-tidy" >}}),
[previously]({{< ref "2025-03-13-keep-sorted-with-quotes" >}}):

> keep-sorted is, by far, one of my favorite tools to enforce tidying up a
> codebase.

Google Testing Blog, [Sort Lines in Source Code](https://testing.googleblog.com/2025/09/sort-lines-in-source-code.html).

They have finally released a
[TotT](https://abseil.io/resources/swe-book/html/ch11.html#:~:text=their%20testing%20culture.-,Testing%20on%20the%20Toilet,-Of%20all%20the)
("Testing on the Toilet") episode about
[keep-sorted](https://github.com/google/keep-sorted).

It's such an underappreciated tool: not even 300 stars on GitHub. In the
meantime, anything named "AI" or "Agents" or "LLM" rises to the top without any
scrutiny of quality.

Now I am happy that I have somewhere to link to other than my blog.

