Say you use Semantic Versioning (http://semver.org/) for your git project's releases, and your list of tags is growing longer and longer.
Now it's time for you to make a new tag, but you don't remember what the last tag was.
$ tag -l | sort
but then you see:
Note: that 0.0.10 comes after 0.0.1 - that ain't right!
You check the man page, and neither dictionary order, general numeric sort, nor numeric sort seem to work. GAH!!! The frustration!
You think to yourself, should I write a simple script that parses out the dots and then does comparison? No, someone has to have done this before... a little more Googling... Still nothing.
version sort to the rescue!
$ tag -l | sort -V
Now OS X's
sort doesn't come with the -V flag, so if you want to use it there you'll have to use macports or brew or something to install coreutils, then you should be able to do:
$ tag -l | gsort -V
Have fun kiddos!