Print rows containing 'total' first. Not really an elegant solution.