Create a dedicated template filter to order properly all the branches displayed

Fixes https://github.com/fedora-infra/pkgdb2/issues/36