If that's the case we should group by signature, sort by med_or_high DESC, signature ASC