(slightly) improved view of totals; sorting works now