sort branches in descending order by time