Sort branch names snarfed from refs/ hierarchy.