Getting branches in order.