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.
Conversation
Notices
-
Embed this notice
Evan Prodromou (evan@social.openearth.org)'s status on Thursday, 15-May-2025 07:04:53 JST Evan Prodromou
- prettygood likes this.
- Evan Prodromou repeated this.
-
Embed this notice
Evan Prodromou (evan@social.openearth.org)'s status on Friday, 16-May-2025 04:41:19 JST Evan Prodromou
I got to be one of the 10,000 that day.