Fix visible groups. Sort groups by scores. Close #150 Close #162