if a selection has been repeated twice, takes the highest rank
Merge branch 'master' of github.com:robhuang/assign-sections