sort branches by decreasing version order