Join Nostr
2025-05-14 22:04:06 UTC

Evan Prodromou on Nostr: So, you learn something new every day. What I learned today is that the `sort` ...

So, you learn something new every day. What I learned today is that the `sort` command has a `-V` flag that lets you sort by *version* *order*. So, it correctly sorts v1.8.2 before v1.21.1. It even takes into account prerelease tags like -dev and -rc.1. I was able to use it for sorting our git version tags for CityCatalyst really nicely.