Multi-Branch priority sorter

multi-branch-priority-sorter