How to sort git branches by date

I found that neat little trick on stackoverflow. You can just sort:

git branch --sort=-committerdate