I have a spreadsheet that has groups of data.
I.e several rows of data all grouped under different labels.

I did not write the spreadsheet and the data is collected from other sources and each group only has the label in the first row.
When the data is updated the groups are not sorted and i would like to.

Is there a way to do it without manually entering the label for each row(there is several hundred groups).