Total Row and Sorting Tables