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

Close #150 Close #162