Add support for sorting by column

This adds support for sorting the data in the table view
by a column. Now, when the user clicks on a column header
the data in the table will be sorted by that field.

Change-Id: I1429048a8c56fb00bdc60735d0e351386c1835a9
Merge topic 'sort-columns' into master

8e7d788d Add support for sorting by column