sorting summary rows correctly now