How Do I Keep Alternating Color Rows While Sorting?

I highlighted different rows in turn to make a basic spreadsheet more understandable. Regretfully, I also need or desire to arrange the data in different ways. My highlighting is always messed up when I do this. Is it possible to sort a table and keep the highlighting changing colors at the same time? Any assistance is greatly appreciated.