title: `git tag` sorted in chronological order of the date of the commit pointed to
body: <p>The output from <code>git tag</code> is ordered alphabetically. I would like it to be ordered chronological (the date of the commits they are assigned to, not the date on which they were created), otherwise the output should stay the same.</p>
  
  <p>I’ve tried the suggestion from <a href="http://networkadmin20.blogspot.de/2010/08/howto-list-git-tags-by-date.html" rel="noreferrer">http://networkadmin20.blogspot.de/2010/08/howto-list-git-tags-by-date.html</a>, but the order is still the same.</p>
  
  <p>To make sure it is not an error with my repository, I tried the following with a clean repository:</p>
  
  <pre><code>soeren@ubuntu ~/Projects/sandbox % mkdir chronogit
  soeren@ubuntu ~/Projects/sandbox % cd chronogit 
  soeren@ubuntu ~/Projects/sandbox/chronogit % git init
  Initialized empty Git repository in /home/soeren/Projects/sandbox/chronogit/.git/
  soeren@ubuntu ~/Projects/sandbox/chronogit (git)-[master] % touch a
  soeren@ubuntu ~/Projects/sandbox/chronogit (git)-[master] % git add a
  soeren@ubuntu ~/Projects/sandbox/chronogit (git)-[master] % git commit -m 'a'
  [master (root-commit) f88e0e9] a
   0 files changed
   create mode 100644 a
  soeren@ubuntu ~/Projects/sandbox/chronogit (git)-[master] % git tag 'A-first'
  soeren@ubuntu ~/Projects/sandbox/chronogit (git)-[master] % git mv a b
  soeren@ubuntu ~/Projects/sandbox/chronogit (git)-[master] % git commit -m 'c'
  [master ecc0c08] c
   1 file changed, 0 insertions(+), 0 deletions(-)
   rename a =&gt; b (100%)
  soeren@ubuntu ~/Projects/sandbox/chronogit (git)-[master] % git tag 'C-second'
  soeren@ubuntu ~/Projects/sandbox/chronogit (git)-[master] % git mv b c
  soeren@ubuntu ~/Projects/sandbox/chronogit (git)-[master] % git commit -m 'b'
  [master e72682d] b
   1 file changed, 0 insertions(+), 0 deletions(-)
   rename b =&gt; c (100%)
  soeren@ubuntu ~/Projects/sandbox/chronogit (git)-[master] % git tag 'B-third'
  soeren@ubuntu ~/Projects/sandbox/chronogit (git)-[master] % git tag
  A-first
  B-third
  C-second
  soeren@ubuntu ~/Projects/sandbox/chronogit (git)-[master] % git for-each-ref refs/tags --sort=taggerdate --format="%(refname:short)"
  A-first
  B-third
  C-second
  </code></pre>
  
  <p>The desired output is:</p>
  
  <pre><code>A-first
  C-second
  B-third
  </code></pre>
  
  <p>or, since inverting it shouldn’t be too hard:</p>
  
  <pre><code>B-third
  C-second
  A-first
  </code></pre>
  
  <p><strong>Edit:</strong> As pointed out in the comments, <a href="https://stackoverflow.com/questions/6900328/git-command-to-show-all-lightweight-tags-creation-dates">this question</a> is pretty similiar, so I tried the following:</p>
  
  <pre><code>soeren@ubuntu ~/Projects/sandbox/chronogit (git)-[master] % git log --tags --simplify-by-decoration --pretty="format:%ai %d"          
  2013-09-06 16:08:43 +0200  (HEAD, B-third, master)
  2013-09-06 16:08:21 +0200  (C-second)
  2013-09-06 16:07:42 +0200  (A-first)
  </code></pre>
  
  <p>The order is fine, but now I’m fighting with the formatting…</p>
  
  <pre><code>soeren@ubuntu ~/Projects/sandbox/chronogit (git)-[master] % git log --tags --simplify-by-decoration --pretty="format:%(refname:short)"
  %(refname:short)
  %(refname:short)
  %(refname:short)
  soeren@ubuntu ~/Projects/sandbox/chronogit (git)-[master] % git log --tags --simplify-by-decoration --format="%(refname:short)" 
  %(refname:short)
  %(refname:short)
  %(refname:short)
  </code></pre>