Table with Alternating Row Colors

Below is another table. This time the rows have the class names even and odd. Since the order of the rows change when the table is sorted we reset the class names after the sort.

String String Number Date No Sort
apple Strawberry 45 18/02/2004 Item 0
Banana orange 7698 05/02/2000 Item 1
orange Banana 4546 09/12/2001 Item 2
Strawberry apple 987 10/11/2001 Item 3
Pear blueberry 98743 31/12/2002 Item 4
blueberry Pear 4 05/08/2005 Item 5

 

String String Number Date No Sort
apple Strawberry 45 2001-03-13
Banana orange 7698 1789-07-14
orange Banana 4546 1949-07-04
Strawberry apple 987 1975-08-19
Pear blueberry 98743 2001-01-01
blueberry Pear 4 2001-04-18