return branches list sorted