Implemented table sorting.

Jira: https://issues.jboss.org/browse/DTGOV-93