fixed: sorting of ordered groups not correct