Comparing the irregularity and the total irregularity of graphs