Adding numeric sort for value columns.

Fix the sorting in columns, and make sure the totals column stays down the bottom.